Skip to content

Commit b8f673c

Browse files
authored
Merge pull request #101 from rainers/master
Changes for Visual D 0.48.0-beta1
2 parents 67f99d2 + 736e331 commit b8f673c

File tree

83 files changed

+2155
-447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2155
-447
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ vdextensions/obj
1212
/msbuild/dbuild/obj
1313
/msbuild/dbuild/bin
1414
/msbuild/dbuild/.vs
15+
/test

CHANGES

Lines changed: 56 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -842,17 +842,17 @@ Version history
842842
* language service
843843
- dparser: semantic analysis no longer times out after 500ms, but cancels previous requests
844844
- dparser: improved performance by adding name lookup cache
845-
- Improvements to completion lists:
845+
- Improvements to completion lists:
846846
- completion box no longer pops up if caret has been moved elsewhere
847-
- new option to disable exact start match (searches case insensitive sub string)
848-
- free functions show different icon than member functions
849-
- aliases show other icon than variables
850-
- new sorting modes "by type" using classification by the semantic engine,
851-
"by declaration", effectively using scopes as discovered by the semantic engine
852-
- without any match, still keep the completion box open with recent items
853-
- less flashing when updating the results
854-
- code snippets now added to possible expansions
855-
847+
- new option to disable exact start match (searches case insensitive sub string)
848+
- free functions show different icon than member functions
849+
- aliases show other icon than variables
850+
- new sorting modes "by type" using classification by the semantic engine,
851+
"by declaration", effectively using scopes as discovered by the semantic engine
852+
- without any match, still keep the completion box open with recent items
853+
- less flashing when updating the results
854+
- code snippets now added to possible expansions
855+
856856
2017-03-13 Version 0.44.1
857857

858858
* bugzilla 17252: Fixed bad character inserted into the executable search path default
@@ -985,3 +985,49 @@ Version history
985985
- can now show the dynamic type of an interface
986986
* miscellaneous
987987
- Issue 18622: removed outdated information regarding link definition when generated by Visual D DLL project.
988+
989+
unreleased Version 0.48.0
990+
991+
* installation
992+
- fixed uninstallation for VS2017
993+
- installation for VS2013+ now uses PackageManifest format instead of Vsix
994+
- VS2017: loading the Visual D package could crash with some VS installation "ids""
995+
- avoid initial error message regarding altered assemblies with same version
996+
- fix installation of the D icon for the solution explorer in VS2017
997+
- installer hides options for VS2005-VS2012 if not installed
998+
* new project wizard
999+
- restore project templates for VS2008, new project wizard doesn't work there'
1000+
- mixed D/C++ VC project: optionally adding main in C++, setup precompiled headers
1001+
- new VCProject: now uses $(LatestTargetPlatformVersion) as WindowsTargetPlatformVersion to
1002+
avoid defaulting to Windows SDK 8.1
1003+
* settings
1004+
- fix default library path if UCRT has different version than SDK
1005+
- VS2017: D compiler installation paths and "demangle link errors" are now saved
1006+
to "HKCR\Softwre\Visual D" to be picked up by msbuild
1007+
- show detected compiler version below installation path
1008+
- removed option "parse source for syntax errors", now always on
1009+
- removed option "expansions from text buffer", now always off
1010+
- removed option "use semantic analysis for goto definition", now always on
1011+
- removed option "override linker settings from sc.ini", always on as linker no
1012+
longer set in sc.ini since dmd 2.079
1013+
- removed option "additional linker options", it was invisible anyway
1014+
- rearrange settings to better show their scope
1015+
* dparser
1016+
- semantic analysis did not work if "parse source for syntax errors" was disabled
1017+
- no semantic info for a package if any file in the package has fatal parser error
1018+
- now has semantic support for static foreach (thanks to Alexander Bothe)
1019+
- fixed "Find references"
1020+
* mago
1021+
- added option to show base class fields as direct fields
1022+
- allow suffix 'h' for hex numbers for better interoperablility with VS disassembly
1023+
- concord: can now show return values of functions stepped over (not slices or delegates
1024+
on x64 or small non-POD-structs)
1025+
- concord: fix crash when showing children in data tooltip (mostly occured in VS2017)
1026+
- concord: allow dragging addresses to the disassembly window
1027+
- engine: Fix the way the debugger steps over instructions with REP prefix.
1028+
* cv2pdb
1029+
- can now detect VS2017 via Setup-COM-API
1030+
- some DWARF fixes
1031+
* when pasting code to D source file newlines are adapted to surrounding code
1032+
* fixed "Compile and Run" on selection
1033+
* fix help via F1 for dmd 2.072+

Makefile

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
# paths on your system or pass on the command line to nmake
2626

2727
NSIS = $(PROGRAMFILES)\NSIS
28-
MSBUILD = c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
28+
MSBUILD = msbuild
29+
MSBUILD15 = "$(PROGRAMFILES)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild"
2930
CONFIG = Release COFF32
3031

3132
##############################################################
@@ -48,7 +49,14 @@ vdserver:
4849
devenv /Project "vdserver" /Build "$(CONFIG)|Win32" visuald_vs10.sln
4950

5051
dparser:
51-
cd vdc\abothe && $(MSBUILD) vdserver.sln /p:Configuration=Release;Platform="Any CPU" /p:TargetFrameworkVersion=4.0 /p:DefineConstants=NET40 /t:Rebuild
52+
cd vdc\abothe && $(MSBUILD15) vdserver.sln /p:Configuration=Release;Platform="Any CPU" /p:TargetFrameworkVersion=4.5 /p:DefineConstants=NET40 /t:Rebuild
53+
54+
fake_dparser:
55+
if not exist bin\Release\DParserCOMServer\nul md bin\Release\DParserCOMServer
56+
if exist "$(PROGRAMFILES)\VisualD\dparser\dparser\DParserCOMServer.exe" copy "$(PROGRAMFILES)\VisualD\dparser\dparser\DParserCOMServer.exe" bin\Release\DParserCOMServer
57+
if exist "$(PROGRAMFILES)\VisualD\dparser\dparser\D_Parser.dll" copy "$(PROGRAMFILES)\VisualD\dparser\dparser\D_Parser.dll" bin\Release\DParserCOMServer
58+
if not exist bin\Release\DParserCOMServer\DParserCOMServer.exe echo dummy >bin\Release\DParserCOMServer\DParserCOMServer.exe
59+
if not exist bin\Release\DParserCOMServer\D_Parser.dll echo dummy >bin\Release\DParserCOMServer\D_Parser.dll
5260

5361
vdextension:
5462
cd vdextensions && $(MSBUILD) vdextensions.csproj /p:Configuration=Release;Platform=x86 /t:Rebuild
@@ -60,10 +68,20 @@ dbuild12:
6068
cd msbuild\dbuild && devenv /Build "Release|AnyCPU" /Project "dbuild" dbuild.sln
6169
# cd msbuild\dbuild && $(MSBUILD) dbuild.sln /p:Configuration=Release;Platform="Any CPU" /t:Rebuild
6270

71+
fake_dbuild12:
72+
if not exist msbuild\dbuild\obj\release\nul md msbuild\dbuild\obj\release
73+
if exist "$(PROGRAMFILES)\VisualD\msbuild\dbuild.12.0.dll" copy "$(PROGRAMFILES)\VisualD\msbuild\dbuild.12.0.dll" msbuild\dbuild\obj\release
74+
if not exist msbuild\dbuild\obj\release\dbuild.12.0.dll echo dummy >msbuild\dbuild\obj\release\dbuild.12.0.dll
75+
6376
dbuild14:
6477
cd msbuild\dbuild && devenv /Build "Release-v14|AnyCPU" /Project "dbuild" dbuild.sln
6578
# cd msbuild\dbuild && $(MSBUILD) dbuild.sln /p:Configuration=Release;Platform="Any CPU" /t:Rebuild
6679

80+
fake_dbuild14:
81+
if not exist msbuild\dbuild\obj\release-v14\nul md msbuild\dbuild\obj\release-v14
82+
if exist "$(PROGRAMFILES)\VisualD\msbuild\dbuild.14.0.dll" copy "$(PROGRAMFILES)\VisualD\msbuild\dbuild.14.0.dll" msbuild\dbuild\obj\release-v14
83+
if not exist msbuild\dbuild\obj\release-v14\dbuild.14.0.dll echo dummy >msbuild\dbuild\obj\release-v14\dbuild.14.0.dll
84+
6785
dbuild15:
6886
cd msbuild\dbuild && devenv /Build "Release-v15|AnyCPU" /Project "dbuild" dbuild.sln
6987

@@ -77,11 +95,21 @@ mago:
7795
cd ..\..\mago && devenv /Build "Release|x64" /Project "MagoRemote" magodbg_2010.sln
7896
cd ..\..\mago && devenv /Build "Release StaticDE|Win32" /Project "MagoNatCC" magodbg_2010.sln
7997

98+
mago_vs15:
99+
cd ..\..\mago && msbuild /p:Configuration=Release;Platform=Win32;PlatformToolset=v140 /target:DebugEngine\MagoNatDE MagoDbg_2010.sln
100+
cd ..\..\mago && msbuild /p:Configuration=Release;Platform=x64;PlatformToolset=v140 /target:DebugEngine\MagoRemote MagoDbg_2010.sln
101+
cd ..\..\mago && msbuild "/p:Configuration=Release StaticDE;Platform=Win32;PlatformToolset=v140" /target:Expression\MagoNatCC MagoDbg_2010.sln
102+
80103
cv2pdb:
81104
cd ..\..\cv2pdb\trunk && devenv /Project "cv2pdb" /Build "Release|Win32" src\cv2pdb_vs12.sln
82105
cd ..\..\cv2pdb\trunk && devenv /Project "dviewhelper" /Build "Release|Win32" src\cv2pdb_vs12.sln
83106
cd ..\..\cv2pdb\trunk && devenv /Project "dumplines" /Build "Release|Win32" src\cv2pdb_vs12.sln
84107

108+
cv2pdb_vs15:
109+
cd ..\..\cv2pdb\trunk && msbuild /p:Configuration=Release;Platform=Win32;PlatformToolset=v141 src\cv2pdb.vcxproj
110+
cd ..\..\cv2pdb\trunk && msbuild /p:Configuration=Release;Platform=Win32;PlatformToolset=v141 src\dviewhelper\dviewhelper.vcxproj
111+
cd ..\..\cv2pdb\trunk && msbuild /p:Configuration=Release;Platform=Win32;PlatformToolset=v141 src\dumplines.vcxproj
112+
85113
dcxxfilt: $(DCXXFILT_EXE)
86114
$(DCXXFILT_EXE): tools\dcxxfilt.d
87115
# no space after Release, it will be part of environment variable
@@ -90,12 +118,13 @@ $(DCXXFILT_EXE): tools\dcxxfilt.d
90118
##################################
91119
# create installer
92120

93-
install_vs: install_modules dbuild15 install_only
121+
install_vs: install_modules dparser cv2pdb mago dbuild12 dbuild14 dbuild15 install_only
122+
123+
install_vs_no_vs2017: install_modules fake_dparser cv2pdb mago dbuild12 dbuild14 fake_dbuild15 install_only
94124

95-
install_vs_fake_dbuild15: install_modules fake_dbuild15 install_only
125+
install_vs_only_vs2017: install_modules dparser cv2pdb_vs15 mago_vs15 fake_dbuild12 fake_dbuild14 dbuild15 install_only
96126

97-
install_modules: prerequisites visuald_vs vdserver cv2pdb dparser vdextension visualdwizard mago dcxxfilt \
98-
dbuild12 dbuild14
127+
install_modules: prerequisites visuald_vs vdserver vdextension visualdwizard dcxxfilt
99128

100129
install_only:
101130
if not exist ..\downloads\nul md ..\downloads

VERSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define VERSION_MAJOR 0
2-
#define VERSION_MINOR 47
2+
#define VERSION_MINOR 48
33
#define VERSION_REVISION 0
4-
#define VERSION_BETA
5-
#define VERSION_BUILD 0
4+
#define VERSION_BETA -beta
5+
#define VERSION_BUILD 1

appveyor.yml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ skip_tags: true
1515

1616
environment:
1717
matrix:
18+
- os: Visual Studio 2017
19+
VS: 15
20+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
1821
- os: Visual Studio 2015
1922
VS: 14
2023
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
@@ -26,7 +29,8 @@ environment:
2629
cache:
2730
- C:\projects\cache\dmd2080_0.7z
2831
- C:\projects\cache\cd851.zip
29-
- C:\projects\cache\VisualD-v0.45.1-rc2.exe
32+
- C:\projects\cache\VisualD-v0.47.0.exe
33+
- C:\projects\cache\binutils-2.25.tar.gz
3034

3135
#matrix:
3236
# allow_failures:
@@ -73,13 +77,12 @@ install:
7377
copy c:\projects\dm\bin\coffimplib.exe c:\projects\dmd2\windows\bin
7478
# Download & install Visual D
7579
- ps: |
76-
If (-not (Test-Path 'cache\VisualD-v0.45.1-rc2.exe')) {
77-
Start-FileDownload 'https://github.com/dlang/visuald/releases/download/v0.45.1-rc2/VisualD-v0.45.1-rc2.exe' -FileName 'cache\VisualD-v0.45.1-rc2.exe'
80+
If (-not (Test-Path 'cache\VisualD-v0.47.0.exe')) {
81+
Start-FileDownload 'https://github.com/dlang/visuald/releases/download/v0.47.0/VisualD-v0.47.0.exe' -FileName 'cache\VisualD-v0.47.0.exe'
7882
}
79-
- cache\VisualD-v0.45.1-rc2.exe /S
83+
- cache\VisualD-v0.47.0.exe /S
8084
# configure DMD path
81-
- reg add "HKLM\SOFTWARE\Microsoft\VisualStudio\12.0\ToolsOptionsPages\Projects\Visual D Settings" /v DMDInstallDir /t REG_SZ /d c:\projects\dmd2 /reg:32 /f
82-
- reg add "HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\ToolsOptionsPages\Projects\Visual D Settings" /v DMDInstallDir /t REG_SZ /d c:\projects\dmd2 /reg:32 /f
85+
- reg add "HKLM\SOFTWARE\DMD" /v InstallationFolder /t REG_SZ /d c:\projects /reg:32 /f
8386
# disable link dependencies monitoring, fails on AppVeyor server
8487
- reg add "HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\ToolsOptionsPages\Projects\Visual D Settings" /v optlinkDeps /t REG_DWORD /d 0 /reg:32 /f
8588
# Set environment variables
@@ -111,17 +114,17 @@ build_script:
111114
# Clone mago/cv2pdb (need to be two levels up)
112115
- cd ..
113116
- git clone https://github.com/rainers/mago.git mago
114-
- set VS_SDK_PATH=%VSSDK120Install%
115-
- copy mago\PropSheets\Template_MagoDbg_properties.props mago\PropSheets\MagoDbg_properties.props
116117
- md cv2pdb
117118
- cd cv2pdb
118119
- git clone https://github.com/rainers/cv2pdb.git trunk
119120
- cd ..
120121
# Download & extract binutils
121122
- cd projects
122123
- ps: |
123-
Start-FileDownload 'http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz' -FileName 'binutils-2.25.tar.gz'
124-
7z x binutils-2.25.tar.gz > $null
124+
If (-not (Test-Path 'cache\binutils-2.25.tar.gz')) {
125+
Start-FileDownload 'http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz' -FileName 'cache\binutils-2.25.tar.gz'
126+
}
127+
7z x cache\binutils-2.25.tar.gz > $null
125128
7z x binutils-2.25.tar > $null
126129
- 'if "%VS%"=="12" echo #define snprintf _snprintf >binutils-2.25\config.h'
127130
- 'if "%VS%"=="14" echo // empty >binutils-2.25\config.h'
@@ -131,11 +134,8 @@ build_script:
131134
# build installer
132135
- cd visuald
133136
# can build dbuild15 only with VS2017
134-
- if "%VS%"=="15" nmake install_vs
135-
- if not "%VS%"=="15" nmake install_vs_fake_dbuild15
136-
# build mago-mi.exe for others to download as artifact
137-
- cd c:\mago
138-
- devenv /Build "Release StaticDE|Win32" /Project "mago-mi" magodbg_2010.sln
137+
- if "%VS%"=="15" nmake install_vs_only_vs2017
138+
- if not "%VS%"=="15" nmake install_vs_no_vs2017
139139

140140
after_build:
141141
# publish as artifact
@@ -144,13 +144,10 @@ after_build:
144144
- for %%I in (downloads\*.exe) do (set BUILD_EXE=%%I && set ARTIFACT=%%~dpnI-%APPVEYOR_BUILD_NUMBER%-vs%VS%.exe)
145145
- copy %BUILD_EXE% %ARTIFACT%
146146
- ps: |
147-
If ($Env:VS -eq '12') {
148-
echo 'Creating artifacts...'
149-
Push-AppveyorArtifact $Env:ARTIFACT
150-
Push-AppveyorArtifact ..\cv2pdb\trunk\bin\Release\cv2pdb.exe
151-
Push-AppveyorArtifact logs_and_symbols.7z
152-
Push-AppveyorArtifact ..\mago\bin\Win32\Release\mago-mi.exe
153-
}
147+
echo 'Creating artifacts...'
148+
Push-AppveyorArtifact $Env:ARTIFACT
149+
Push-AppveyorArtifact ..\cv2pdb\trunk\bin\Release\cv2pdb.exe
150+
Push-AppveyorArtifact logs_and_symbols.7z
154151
155152
on_failure:
156153
- cd c:\projects

c2d/idl2d.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class idl2d
156156
"vsdebugguids.h", "VSRegKeyNames.h", "SCGuids.h", "wbids.h", "sharedids.h",
157157
"vseeguids.h", "version.h", "scc.h",
158158
"vsplatformuiuuids.*", // only in VS2010 SDK
159+
"vscookie.*", // only in later VS2017 SDK
159160
// no longer in SDK2010: "DSLToolsCmdID.h",
160161
];
161162

@@ -1332,7 +1333,7 @@ version(all)
13321333
// IP_DEST_PORT_UNREACHABLE defined twice
13331334
if(currentModule == "ipexport")
13341335
{
1335-
replaceTokenSequence(tokens, "#define IP_DEST_PORT_UNREACHABLE (IP_STATUS_BASE + 5)\n"
1336+
replaceTokenSequence(tokens, "#define IP_DEST_PORT_UNREACHABLE (IP_STATUS_BASE + 5)\n" ~
13361337
"#define IP_HOP_LIMIT_EXCEEDED (IP_STATUS_BASE + 13)\n",
13371338
"#define IP_HOP_LIMIT_EXCEEDED (IP_STATUS_BASE + 13)\n", false);
13381339
}

doc/BuildFromSource.dd

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,25 @@ $(UL
9292
)
9393
)
9494
)
95-
$(LI VS2010-VS2017: The mechanism has changed with VS2010, as the non-standard registry settings are rebuilt
95+
$(LI VS2010-VS2015: The mechanism has changed with VS2010, as the non-standard registry settings are rebuilt
9696
on every start of Visual Studio.
9797
$(UL
98-
$(LI Copy the files from `$(DOLLAR)(VSINSTALLDIR)\Common\IDE\Extensions\Rainer Schuetze\visuald\VisualD` into the folder
98+
$(LI Copy the files from `$(DOLLAR)(VSINSTALLDIR)\Common7\IDE\Extensions\Rainer Schuetze\visuald\VisualD` into the folder
9999
`$(DOLLAR)(APPDATA)\Local\Microsoft\VisualStudio\12.0D\Extensions\VisualD` (replace 12.0D with 14.0D for VS2015, 15.0_`<id>`D
100-
for VS2017 with `<id>` some identifier generated during VS installation))
100+
for VS2017 with `<id>` some identifier generated during VS installation))
101101
$(LI in visuald.pkgdef, replace the path "C:\\Program Files (x86)\\Visual D\\visuald.dll" with your debug build output path.)
102+
$(LI Modify a line in `$(DOLLAR)(VSINSTALLDIR)\Common7\IDE\devenv.pkgdef:
103+
$(PRE -"PkgDefSearchPath" = "$ApplicationExtensionsFolder$;$RootFolder$\Common7\IDE\CommonExtensions;$RootFolder$\Common7\IDE\devenv.admin.pkgdef;")
104+
$(PRE +"PkgDefSearchPath" = "$ApplicationExtensionsFolder$;$RootFolder$\Common7\IDE\CommonExtensions;$AppDataLocalFolder$\Extensions;$RootFolder$\Common7\IDE\devenv.admin.pkgdef;")
105+
)
106+
$(LI in the registry, delete hives
107+
$(UL
108+
$(LI `HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0D`)
109+
$(LI `HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0D_Config`)
110+
))
102111
$(LI Start the IDE with the new settings branch via)
103112
$(PRE devenv /RootSuffix D)
104-
$(LI Visual D will now be shown in the Extension Manager where it has to be enabled.)
113+
$(LI Visual D will now be shown in the Extension Manager where it might have to be enabled.)
105114
)
106115
)
107116
)

doc/Editor.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ $(UL
2020
)
2121
)
2222

23-
$(P The colorizer can be configured in the "Colorizer" setup page of the language settings in
24-
Tools->Options->Text Editor->D->Colorizer: )
23+
$(P The colorizer can be configured in the "Editor" setup page of the language settings in
24+
Tools->Options->Text Editor->D->Editor: )
2525

2626
$(IMG_CENTER images/editor-options.png)
2727

msbuild/dbuild/CompileD.cs

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -798,22 +798,16 @@ private void SetStringArray(string name,
798798

799799
private ToolSwitchType GetToolSwitchTypeForStringPathArray()
800800
{
801-
#if TOOLS_V12
801+
// dynamically decide whether ToolSwitchType.StringPathArray exists
802+
// (not declared in Microsoft.Build.CPPTasks.Common, Version=12.0.0.0, but still seems to work)
803+
var type = typeof(ToolSwitchType);
804+
var enums = type.GetEnumNames();
805+
if (enums.Length >= 10)
806+
return (ToolSwitchType)9; // ToolSwitchType.StringPathArray;
802807
return ToolSwitchType.StringArray;
803-
#else
804-
return ToolSwitchType.StringPathArray;
805-
#endif
806808
}
807809

808-
#if TOOLS_V14 || TOOLS_V15
809-
public
810-
#else
811-
protected
812-
#endif
813-
override string SourcesPropertyName
814-
{
815-
get { return "Sources"; }
816-
}
810+
// use the default implementation of SourcesPropertyName, it returns "Sources"
817811

818812
protected override ITaskItem[] TrackedInputFiles
819813
{
@@ -895,11 +889,11 @@ protected static ushort GetPEArchitecture(string pFilePath)
895889
{
896890
using (System.IO.BinaryReader bReader = new System.IO.BinaryReader(fStream))
897891
{
898-
if (bReader.ReadUInt16() == 23117) //check the MZ signature
892+
if (bReader.ReadUInt16() == 0x5A4D) //check the MZ signature
899893
{
900894
fStream.Seek(0x3A, System.IO.SeekOrigin.Current); //seek to e_lfanew.
901895
fStream.Seek(bReader.ReadUInt32(), System.IO.SeekOrigin.Begin); //seek to the start of the NT header.
902-
if (bReader.ReadUInt32() == 17744) //check the PE\0\0 signature.
896+
if (bReader.ReadUInt32() == 0x4550) //check the PE\0\0 signature.
903897
{
904898
fStream.Seek(20, System.IO.SeekOrigin.Current); //seek past the file header,
905899
architecture = bReader.ReadUInt16(); //read the magic number of the optional header.

msbuild/dbuild/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
// You can specify all the values or you can default the Build and Revision Numbers
3030
// by using the '*' as shown below:
3131
// [assembly: AssemblyVersion("1.0.*")]
32-
[assembly: AssemblyVersion("1.0.0.0")]
32+
[assembly: AssemblyVersion("1.0.*")]
3333
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)