From abbba3f7ae70135e4ce021a3656b0d5400e8b8e0 Mon Sep 17 00:00:00 2001 From: Rainer Schuetze Date: Sat, 13 Apr 2024 07:54:55 +0200 Subject: [PATCH 1/4] fix issue #272: Main function parameters must match one of the signatures rename main to win_main in WindowsApp template --- visuald/Templates/ProjectItems/VDProject/main.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/visuald/Templates/ProjectItems/VDProject/main.d b/visuald/Templates/ProjectItems/VDProject/main.d index 3b0a64a8..ba0e0a12 100644 --- a/visuald/Templates/ProjectItems/VDProject/main.d +++ b/visuald/Templates/ProjectItems/VDProject/main.d @@ -8,10 +8,10 @@ extern (C) int _d_run_main(int argc, char **argv, MainFunc mainFunc); extern (Windows) int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { - return _d_run_main(0, null, &main); // arguments unused, retrieved via CommandLineToArgvW + return _d_run_main(0, null, &win_main); // arguments unused, retrieved via CommandLineToArgvW } -extern(C) int main(string[] args) +extern(C) int win_main(string[] args) { MessageBoxW(null, "Hello D World!"w.ptr, "D Windows Application"w.ptr, MB_OK); return 0; @@ -39,4 +39,4 @@ int foo() { return 42; } -$endif$ \ No newline at end of file +$endif$ From 4c8e6eb5328ac35611260f0015ffcd923c2b2031 Mon Sep 17 00:00:00 2001 From: Rainer Schuetze Date: Mon, 29 Jul 2024 16:44:28 +0200 Subject: [PATCH 2/4] 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 --- CHANGES | 6 +++- Makefile | 8 ++++- VERSION | 2 +- msbuild/dbuild/dbuild.csproj | 62 +++++++++++++++++++++++++++++++-- msbuild/dcompile.targets | 2 +- msbuild/dcompile_defaults.props | 4 +-- nsis/visuald.nsi | 2 ++ sdk/vsi.visualdproj | 3 ++ visuald/updates.d | 7 ++-- 9 files changed, 85 insertions(+), 11 deletions(-) diff --git a/CHANGES b/CHANGES index 76e51c57..a5f532e8 100644 --- a/CHANGES +++ b/CHANGES @@ -1351,7 +1351,7 @@ Version history - pass import paths from prerequisite projects to semantic analysis, too * full installer now bundled with DMD 2.106.0 and LDC 1.35.0 * fixed issue 23734: avoid exception by std.file.isDir when clicking a project folder that doesn't exist - * added separate version of Microsoft.Build.CPPTasks.Common for VS 17.5 - 17.9 + * added separate version of dbuild.dll linked against Microsoft.Build.CPPTasks.Common for VS 17.5 - 17.9 * updated dfmt library from upstream * improved message when dmd crashes * "add imports from dependent projects" is now evaluated recursively and passed to semantic analysis @@ -1367,3 +1367,7 @@ Version history * project template cache now removed if Visual D does not find itself in it. Workaround for issue #256 * fixed some version inaccuracies in installation files + +2024-07-29 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 diff --git a/Makefile b/Makefile index c29e5ff8..8b881407 100644 --- a/Makefile +++ b/Makefile @@ -167,7 +167,13 @@ dbuild17_8: dbuild17_9: cd msbuild\dbuild && $(MSBUILD) dbuild.csproj /p:Configuration=Release-v17_9;Platform=AnyCPU /t:Rebuild -dbuild17_all: dbuild17_0 dbuild17_1 dbuild17_2 dbuild17_3 dbuild17_4 dbuild17_5 dbuild17_6 dbuild17_7 dbuild17_8 dbuild17_9 +dbuild17_10: + cd msbuild\dbuild && $(MSBUILD) dbuild.csproj /p:Configuration=Release-v17_10;Platform=AnyCPU /t:Rebuild + +dbuild17_11: + cd msbuild\dbuild && $(MSBUILD) dbuild.csproj /p:Configuration=Release-v17_11;Platform=AnyCPU /t:Rebuild + +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 mago: cd ..\..\mago && devenv /Build "Release|Win32" /Project "MagoNatDE" magodbg_2010.sln diff --git a/VERSION b/VERSION index 846f9652..3e2517af 100644 --- a/VERSION +++ b/VERSION @@ -2,4 +2,4 @@ #define VERSION_MINOR 4 #define VERSION_REVISION 0 #define VERSION_BETA -rc -#define VERSION_BUILD 1 +#define VERSION_BUILD 2 diff --git a/msbuild/dbuild/dbuild.csproj b/msbuild/dbuild/dbuild.csproj index ca20709c..ad5b31ce 100644 --- a/msbuild/dbuild/dbuild.csproj +++ b/msbuild/dbuild/dbuild.csproj @@ -335,6 +335,50 @@ MinimumRecommendedRules.ruleset 17.9 + + bin\Release-v17_10\ + TRACE;TOOLS_V17 + true + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + 17.10 + + + bin\Debug-v17_10\ + TRACE;DEBUG;TOOLS_V17 + true + false + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + 17.10 + + + bin\Release-v17_11\ + TRACE;TOOLS_V17 + true + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + 17.11 + + + bin\Debug-v17_11\ + TRACE;DEBUG;TOOLS_V17 + true + false + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + 17.11 + true full @@ -378,7 +422,9 @@ v4.6 v4.5.2 v4.7.2 - v4.7.2 + v4.7.2 false false false @@ -609,7 +655,9 @@ - + assemblies\v17\Microsoft.Build.dll @@ -687,6 +735,16 @@ assemblies\v17_9\Microsoft.Build.CPPTasks.Common.dll + + + assemblies\v17_10\Microsoft.Build.CPPTasks.Common.dll + + + + + assemblies\v17_11\Microsoft.Build.CPPTasks.Common.dll + + Designer diff --git a/msbuild/dcompile.targets b/msbuild/dcompile.targets index cf923b99..02c52e8f 100644 --- a/msbuild/dcompile.targets +++ b/msbuild/dcompile.targets @@ -379,7 +379,7 @@ + Condition="'$(DBuildVersion)' != '17.9' and '$(DBuildVersion)' != '17.10' and '$(DBuildVersion)' != '17.11'">