Skip to content

Commit 4c8e6eb

Browse files
committed
version 1.4.0-rc2
* added separate version of dbuild.dll linked against Microsoft.Build.CPPTasks.Common for VS 17.10 - 17.11 * fixed detecting dmd update after 2.108
1 parent abbba3f commit 4c8e6eb

File tree

9 files changed

+85
-11
lines changed

9 files changed

+85
-11
lines changed

CHANGES

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ Version history
13511351
- pass import paths from prerequisite projects to semantic analysis, too
13521352
* full installer now bundled with DMD 2.106.0 and LDC 1.35.0
13531353
* fixed issue 23734: avoid exception by std.file.isDir when clicking a project folder that doesn't exist
1354-
* added separate version of Microsoft.Build.CPPTasks.Common for VS 17.5 - 17.9
1354+
* added separate version of dbuild.dll linked against Microsoft.Build.CPPTasks.Common for VS 17.5 - 17.9
13551355
* updated dfmt library from upstream
13561356
* improved message when dmd crashes
13571357
* "add imports from dependent projects" is now evaluated recursively and passed to semantic analysis
@@ -1367,3 +1367,7 @@ Version history
13671367
* project template cache now removed if Visual D does not find itself in it. Workaround for
13681368
issue #256
13691369
* fixed some version inaccuracies in installation files
1370+
1371+
2024-07-29 version 1.4.0-rc2
1372+
* added separate version of dbuild.dll linked against Microsoft.Build.CPPTasks.Common for VS 17.10 - 17.11
1373+
* fixed detecting dmd update after 2.108

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,13 @@ dbuild17_8:
167167
dbuild17_9:
168168
cd msbuild\dbuild && $(MSBUILD) dbuild.csproj /p:Configuration=Release-v17_9;Platform=AnyCPU /t:Rebuild
169169

170-
dbuild17_all: dbuild17_0 dbuild17_1 dbuild17_2 dbuild17_3 dbuild17_4 dbuild17_5 dbuild17_6 dbuild17_7 dbuild17_8 dbuild17_9
170+
dbuild17_10:
171+
cd msbuild\dbuild && $(MSBUILD) dbuild.csproj /p:Configuration=Release-v17_10;Platform=AnyCPU /t:Rebuild
172+
173+
dbuild17_11:
174+
cd msbuild\dbuild && $(MSBUILD) dbuild.csproj /p:Configuration=Release-v17_11;Platform=AnyCPU /t:Rebuild
175+
176+
dbuild17_all: dbuild17_0 dbuild17_1 dbuild17_2 dbuild17_3 dbuild17_4 dbuild17_5 dbuild17_6 dbuild17_7 dbuild17_8 dbuild17_9 dbuild17_10 dbuild17_11
171177

172178
mago:
173179
cd ..\..\mago && devenv /Build "Release|Win32" /Project "MagoNatDE" magodbg_2010.sln

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#define VERSION_MINOR 4
33
#define VERSION_REVISION 0
44
#define VERSION_BETA -rc
5-
#define VERSION_BUILD 1
5+
#define VERSION_BUILD 2

msbuild/dbuild/dbuild.csproj

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,50 @@
335335
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
336336
<TargetVer>17.9</TargetVer>
337337
</PropertyGroup>
338+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-v17_10|AnyCPU'">
339+
<OutputPath>bin\Release-v17_10\</OutputPath>
340+
<DefineConstants>TRACE;TOOLS_V17</DefineConstants>
341+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
342+
<Optimize>true</Optimize>
343+
<DebugType>pdbonly</DebugType>
344+
<PlatformTarget>AnyCPU</PlatformTarget>
345+
<ErrorReport>prompt</ErrorReport>
346+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
347+
<TargetVer>17.10</TargetVer>
348+
</PropertyGroup>
349+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug-v17_10|AnyCPU'">
350+
<OutputPath>bin\Debug-v17_10\</OutputPath>
351+
<DefineConstants>TRACE;DEBUG;TOOLS_V17</DefineConstants>
352+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
353+
<Optimize>false</Optimize>
354+
<DebugType>pdbonly</DebugType>
355+
<PlatformTarget>AnyCPU</PlatformTarget>
356+
<ErrorReport>prompt</ErrorReport>
357+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
358+
<TargetVer>17.10</TargetVer>
359+
</PropertyGroup>
360+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-v17_11|AnyCPU'">
361+
<OutputPath>bin\Release-v17_11\</OutputPath>
362+
<DefineConstants>TRACE;TOOLS_V17</DefineConstants>
363+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
364+
<Optimize>true</Optimize>
365+
<DebugType>pdbonly</DebugType>
366+
<PlatformTarget>AnyCPU</PlatformTarget>
367+
<ErrorReport>prompt</ErrorReport>
368+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
369+
<TargetVer>17.11</TargetVer>
370+
</PropertyGroup>
371+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug-v17_11|AnyCPU'">
372+
<OutputPath>bin\Debug-v17_11\</OutputPath>
373+
<DefineConstants>TRACE;DEBUG;TOOLS_V17</DefineConstants>
374+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
375+
<Optimize>false</Optimize>
376+
<DebugType>pdbonly</DebugType>
377+
<PlatformTarget>AnyCPU</PlatformTarget>
378+
<ErrorReport>prompt</ErrorReport>
379+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
380+
<TargetVer>17.11</TargetVer>
381+
</PropertyGroup>
338382
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
339383
<DebugSymbols>true</DebugSymbols>
340384
<DebugType>full</DebugType>
@@ -378,7 +422,9 @@
378422
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
379423
<TargetFrameworkVersion Condition=" '$(TargetVer)' == '12.0' or '$(TargetVer)' == '14.0' ">v4.5.2</TargetFrameworkVersion>
380424
<TargetFrameworkVersion Condition=" '$(TargetVer)' == '16.0' or '$(TargetVer)' == '16.1' ">v4.7.2</TargetFrameworkVersion>
381-
<TargetFrameworkVersion Condition=" '$(TargetVer)' == '17' or '$(TargetVer)' == '17.0' or '$(TargetVer)' == '17.1' or '$(TargetVer)' == '17.2' or '$(TargetVer)' == '17.3' or '$(TargetVer)' == '17.4' or '$(TargetVer)' == '17.5' or '$(TargetVer)' == '17.6' or '$(TargetVer)' == '17.7' or '$(TargetVer)' == '17.8' or '$(TargetVer)' == '17.9' ">v4.7.2</TargetFrameworkVersion>
425+
<TargetFrameworkVersion Condition=" '$(TargetVer)' == '17' or '$(TargetVer)' == '17.0' or '$(TargetVer)' == '17.1' or '$(TargetVer)' == '17.2' or '$(TargetVer)' == '17.3'
426+
or '$(TargetVer)' == '17.4' or '$(TargetVer)' == '17.5' or '$(TargetVer)' == '17.6' or '$(TargetVer)' == '17.7' or '$(TargetVer)' == '17.8' or '$(TargetVer)' == '17.9'
427+
or '$(TargetVer)' == '17.10' or '$(TargetVer)' == '17.11'">v4.7.2</TargetFrameworkVersion>
382428
<GeneratePkgDefFile>false</GeneratePkgDefFile>
383429
<IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer>
384430
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
@@ -609,7 +655,9 @@
609655
</Reference>
610656
</ItemGroup>
611657
<!-- VS2022 -->
612-
<ItemGroup Condition="'$(TargetVer)' == '17' or '$(TargetVer)' == '17.0' or '$(TargetVer)' == '17.1' or '$(TargetVer)' == '17.2' or '$(TargetVer)' == '17.3' or '$(TargetVer)' == '17.4' or '$(TargetVer)' == '17.5' or '$(TargetVer)' == '17.6' or '$(TargetVer)' == '17.7' or '$(TargetVer)' == '17.8' or '$(TargetVer)' == '17.9' ">
658+
<ItemGroup Condition="'$(TargetVer)' == '17' or '$(TargetVer)' == '17.0' or '$(TargetVer)' == '17.1' or '$(TargetVer)' == '17.2' or '$(TargetVer)' == '17.3'
659+
or '$(TargetVer)' == '17.4' or '$(TargetVer)' == '17.5' or '$(TargetVer)' == '17.6' or '$(TargetVer)' == '17.7' or '$(TargetVer)' == '17.8'
660+
or '$(TargetVer)' == '17.9' or '$(TargetVer)' == '17.10' or '$(TargetVer)' == '17.11'">
613661
<Reference Include="Microsoft.Build">
614662
<HintPath>assemblies\v17\Microsoft.Build.dll</HintPath>
615663
</Reference>
@@ -687,6 +735,16 @@
687735
<HintPath>assemblies\v17_9\Microsoft.Build.CPPTasks.Common.dll</HintPath>
688736
</Reference>
689737
</ItemGroup>
738+
<ItemGroup Condition="'$(TargetVer)' == '17.10'">
739+
<Reference Include="Microsoft.Build.CPPTasks.Common">
740+
<HintPath>assemblies\v17_10\Microsoft.Build.CPPTasks.Common.dll</HintPath>
741+
</Reference>
742+
</ItemGroup>
743+
<ItemGroup Condition="'$(TargetVer)' == '17.11'">
744+
<Reference Include="Microsoft.Build.CPPTasks.Common">
745+
<HintPath>assemblies\v17_11\Microsoft.Build.CPPTasks.Common.dll</HintPath>
746+
</Reference>
747+
</ItemGroup>
690748
<ItemGroup>
691749
<EmbeddedResource Include="Strings.resx">
692750
<SubType>Designer</SubType>

msbuild/dcompile.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379

380380
<Target Name="Versioned_ComputeLinkImportLibraryOutputsForClean"
381381
DependsOnTargets="ComputeLinkImportLibraryOutputsForClean"
382-
Condition="'$(DBuildVersion)' != '17.9'">
382+
Condition="'$(DBuildVersion)' != '17.9' and '$(DBuildVersion)' != '17.10' and '$(DBuildVersion)' != '17.11'">
383383
</Target>
384384

385385
<!-- changing attributes on link options must be applied to all object files (including C++), so we insert

msbuild/dcompile_defaults.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
<DBuildVersion Condition="$(MSBuildVersion_Major) != 16 and $(MSBuildVersion_Major) != 17">$(MSBuildVersion_Major).0</DBuildVersion>
4848
<DBuildVersion Condition="$(MSBuildVersion_Major) == 16 and $(MSBuildVersion_Minor) == 0">16.0</DBuildVersion>
4949
<DBuildVersion Condition="$(MSBuildVersion_Major) == 16 and $(MSBuildVersion_Minor) != 0">16.1</DBuildVersion>
50-
<DBuildVersion Condition="$(MSBuildVersion_Major) == 17 and $(MSBuildVersion_Minor) &lt; 9">17.$(MSBuildVersion_Minor)</DBuildVersion>
51-
<DBuildVersion Condition="$(MSBuildVersion_Major) == 17 and $(MSBuildVersion_Minor) &gt;= 9">17.9</DBuildVersion>
50+
<DBuildVersion Condition="$(MSBuildVersion_Major) == 17 and $(MSBuildVersion_Minor) &lt; 11">17.$(MSBuildVersion_Minor)</DBuildVersion>
51+
<DBuildVersion Condition="$(MSBuildVersion_Major) == 17 and $(MSBuildVersion_Minor) &gt;= 11">17.11</DBuildVersion>
5252
</PropertyGroup>
5353

5454
<PropertyGroup Condition="'$(DBuildVersion)' == ''">

nsis/visuald.nsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ Section "Visual Studio package" SecPackage
344344
${File} ..\msbuild\dbuild\obj\release-v17_7\ dbuild.17.7.dll
345345
${File} ..\msbuild\dbuild\obj\release-v17_8\ dbuild.17.8.dll
346346
${File} ..\msbuild\dbuild\obj\release-v17_9\ dbuild.17.9.dll
347+
${File} ..\msbuild\dbuild\obj\release-v17_10\ dbuild.17.10.dll
348+
${File} ..\msbuild\dbuild\obj\release-v17_11\ dbuild.17.11.dll
347349
!endif
348350
WriteRegStr HKLM "Software\${APPNAME}" "msbuild" $INSTDIR\msbuild
349351
!endif

sdk/vsi.visualdproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,6 +2225,8 @@
22252225
<File path="vsi\msdbg16a.d" />
22262226
<File path="vsi\msdbg170.d" />
22272227
<File path="vsi\msdbg171.d" />
2228+
<File path="vsi\msdbg1710.d" />
2229+
<File path="vsi\msdbg1711.d" />
22282230
<File path="vsi\msdbg172.d" />
22292231
<File path="vsi\msdbg173.d" />
22302232
<File path="vsi\msdbg174.d" />
@@ -2305,6 +2307,7 @@
23052307
<File path="vsi\vsshell167.d" />
23062308
<File path="vsi\vsshell169.d" />
23072309
<File path="vsi\vsshell171.d" />
2310+
<File path="vsi\vsshell1710.d" />
23082311
<File path="vsi\vsshell172.d" />
23092312
<File path="vsi\vsshell174.d" />
23102313
<File path="vsi\vsshell175.d" />

visuald/updates.d

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,11 @@ void winHttpGet(DownloadRequest* req)
274274
debug(UPDATE) writeln("Header: ", header);
275275

276276
auto lines = header.splitLines();
277-
if (lines.length == 0 || !lines[0].startsWith("HTTP/"))
277+
auto firstline = lines.length == 0 ? ""w : strip(lines[0]);
278+
if (!firstline.startsWith("HTTP/"))
278279
throw new Exception("no HTTP header");
279-
if (!lines[0].endsWith(" OK"))
280-
throw new Exception(to!string(lines[0]));
280+
if (!firstline.endsWith(" OK") && !firstline.endsWith(" 200"))
281+
throw new Exception("unexpected answer: " ~ to!string(firstline));
281282

282283
foreach(ln; lines)
283284
if (ln.startsWith("Content-Length:"))

0 commit comments

Comments
 (0)