From b7ee8f1eaa4e67b3eeba426b4bc528b35042dbea Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 18 Jun 2020 18:03:33 +1000 Subject: Create netstandard version of Mba.Core and separate nupkg for mbanative. --- appveyor.cmd | 14 +++-- balutil.sln | 10 +-- src/WixToolset.Mba.Core/Engine.cs | 10 +-- src/WixToolset.Mba.Core/Properties/AssemblyInfo.cs | 17 ----- src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj | 73 ++++------------------ src/WixToolset.Mba.Core/WixToolset.Mba.Core.nuspec | 16 +++-- .../build/net20/WixToolset.Mba.Core.props | 11 ---- src/WixToolset.Mba.Core/packages.config | 4 -- src/mbanative/mbanative.vcxproj | 10 ++- .../runtime.win.WixToolset.Mba.Core.nuspec | 19 ++++++ .../WixToolsetTest.Mba.Core.csproj | 2 +- 11 files changed, 72 insertions(+), 114 deletions(-) delete mode 100644 src/WixToolset.Mba.Core/Properties/AssemblyInfo.cs delete mode 100644 src/WixToolset.Mba.Core/build/net20/WixToolset.Mba.Core.props delete mode 100644 src/WixToolset.Mba.Core/packages.config create mode 100644 src/mbanative/runtime.win.WixToolset.Mba.Core.nuspec diff --git a/appveyor.cmd b/appveyor.cmd index ddad4dae..1e1f118c 100644 --- a/appveyor.cmd +++ b/appveyor.cmd @@ -1,15 +1,19 @@ @setlocal @pushd %~dp0 +@set _C=Release nuget restore -msbuild -p:Configuration=Release;Platform=x86;PlatformToolset=v140 +msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v140 -msbuild -p:Configuration=Release;Platform=x86;PlatformToolset=v141 +msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v141 -msbuild -p:Configuration=Release -t:Pack src\balutil\balutil.vcxproj -msbuild -p:Configuration=Release -t:Pack src\bextutil\bextutil.vcxproj -msbuild -p:Configuration=Release -t:Pack src\WixToolset.Mba.Core\WixToolset.Mba.Core.csproj +@rem msbuild -t:VSTest -p:Configuration=%_C% src\test\WixToolsetTest.Mba.Core\WixToolsetTest.Mba.Core.csproj + +msbuild -t:Pack -p:Configuration=%_C% src\balutil\balutil.vcxproj +msbuild -t:Pack -p:Configuration=%_C% src\bextutil\bextutil.vcxproj +msbuild -t:Pack -p:Configuration=%_C% src\WixToolset.Mba.Core\WixToolset.Mba.Core.csproj +msbuild -t:Pack -p:Configuration=%_C% src\mbanative\mbanative.vcxproj @popd @endlocal \ No newline at end of file diff --git a/balutil.sln b/balutil.sln index 73df2292..e923cf15 100644 --- a/balutil.sln +++ b/balutil.sln @@ -7,7 +7,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "balutil", "src\balutil\balu EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bextutil", "src\bextutil\bextutil.vcxproj", "{06027492-1CB9-48BC-B31E-C1F9356ED07E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WixToolset.Mba.Core", "src\WixToolset.Mba.Core\WixToolset.Mba.Core.csproj", "{E7E1841E-A58E-4901-B9CA-4845B807D45F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WixToolset.Mba.Core", "src\WixToolset.Mba.Core\WixToolset.Mba.Core.csproj", "{E7E1841E-A58E-4901-B9CA-4845B807D45F}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mbanative", "src\mbanative\mbanative.vcxproj", "{665E0441-17F9-4105-B202-EDF274657F6E}" EndProject @@ -52,10 +52,10 @@ Global {665E0441-17F9-4105-B202-EDF274657F6E}.Release|x64.ActiveCfg = Release|Win32 {665E0441-17F9-4105-B202-EDF274657F6E}.Release|x86.ActiveCfg = Release|Win32 {665E0441-17F9-4105-B202-EDF274657F6E}.Release|x86.Build.0 = Release|Win32 - {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Debug|x64.ActiveCfg = Debug|x64 - {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Debug|x64.Build.0 = Debug|x64 - {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Debug|x86.ActiveCfg = Debug|x86 - {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Debug|x86.Build.0 = Debug|x86 + {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Debug|x64.ActiveCfg = Debug|Any CPU + {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Debug|x64.Build.0 = Debug|Any CPU + {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Debug|x86.ActiveCfg = Debug|Any CPU + {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Debug|x86.Build.0 = Debug|Any CPU {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Release|x64.ActiveCfg = Release|Any CPU {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Release|x64.Build.0 = Release|Any CPU {F54997F7-10D7-409B-B9F2-DB546490EDC0}.Release|x86.ActiveCfg = Release|Any CPU diff --git a/src/WixToolset.Mba.Core/Engine.cs b/src/WixToolset.Mba.Core/Engine.cs index f2cc3947..408278ed 100644 --- a/src/WixToolset.Mba.Core/Engine.cs +++ b/src/WixToolset.Mba.Core/Engine.cs @@ -332,14 +332,14 @@ namespace WixToolset.Mba.Core internal sealed class Variables : IVariables { // .NET 2.0 does not support Func or Action. - internal delegate T Getter(string name); - internal delegate void Setter(string name, T value); + internal delegate T Getter(string name); + internal delegate void Setter(string name, T value); - private Getter getter; - private Setter setter; + private Getter getter; + private Setter setter; private Predicate contains; - internal Variables(Getter getter, Setter setter, Predicate contains) + internal Variables(Getter getter, Setter setter, Predicate contains) { this.getter = getter; this.setter = setter; diff --git a/src/WixToolset.Mba.Core/Properties/AssemblyInfo.cs b/src/WixToolset.Mba.Core/Properties/AssemblyInfo.cs deleted file mode 100644 index 386748a8..00000000 --- a/src/WixToolset.Mba.Core/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. - -using System; -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Managed Bootstrapper Application Core (WiX)")] -[assembly: AssemblyDescription("Managed Bootstrapper Application Core")] -[assembly: AssemblyProduct("WiX Toolset")] -[assembly: AssemblyCompany("WiX Toolset Team")] -[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and contributors. All rights reserved.")] - -// Types should not be visible to COM by default. -[assembly: ComVisible(false)] -[assembly: Guid("6f4e0cc9-8ad4-4b5a-a669-3aafff67a76f")] - -[assembly: CLSCompliantAttribute(true)] diff --git a/src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj b/src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj index e88498ac..b05ea8b9 100644 --- a/src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj +++ b/src/WixToolset.Mba.Core/WixToolset.Mba.Core.csproj @@ -1,76 +1,29 @@  - - + - {E7E1841E-A58E-4901-B9CA-4845B807D45F} + netstandard2.0;net20 WixToolset.Mba.Core - Library WixToolset.Mba.Core - 0693;1591 - v2.0 + embedded Managed Bootstrapper Application Core + $(MSBuildThisFileName).nuspec - - true - false - $(DefineConstants);DEBUG;TRACE - - - true - true - $(DefineConstants);TRACE + + + $(OutputPath)\$(AssemblyName).xml + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - + - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + $(OutputPath) + Configuration=$(Configuration);Id=$(MSBuildThisFileName);Version=$(BuildVersionSimple);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description) - - - - $(OutputPath)\$(AssemblyName).xml - \ No newline at end of file diff --git a/src/WixToolset.Mba.Core/WixToolset.Mba.Core.nuspec b/src/WixToolset.Mba.Core/WixToolset.Mba.Core.nuspec index c7f4a97d..4f3a2744 100644 --- a/src/WixToolset.Mba.Core/WixToolset.Mba.Core.nuspec +++ b/src/WixToolset.Mba.Core/WixToolset.Mba.Core.nuspec @@ -5,17 +5,23 @@ $version$ WiX Toolset Team WiX Toolset Team - - https://licenses.nuget.org/MS-RL + MS-RL https://github.com/wixtoolset/balutil false $description$ $copyright$ + + + + + + + + - - - + + diff --git a/src/WixToolset.Mba.Core/build/net20/WixToolset.Mba.Core.props b/src/WixToolset.Mba.Core/build/net20/WixToolset.Mba.Core.props deleted file mode 100644 index c0018e0d..00000000 --- a/src/WixToolset.Mba.Core/build/net20/WixToolset.Mba.Core.props +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - $(MSBuildThisFileDirectory)x86\mbanative.dll - - - - - diff --git a/src/WixToolset.Mba.Core/packages.config b/src/WixToolset.Mba.Core/packages.config deleted file mode 100644 index 03e866cf..00000000 --- a/src/WixToolset.Mba.Core/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/mbanative/mbanative.vcxproj b/src/mbanative/mbanative.vcxproj index f86c7fef..0a740a9f 100644 --- a/src/mbanative/mbanative.vcxproj +++ b/src/mbanative/mbanative.vcxproj @@ -31,12 +31,17 @@ Unicode mbanative mbanative.def + Native component of WixToolset.Mba.Core + + + + ..\balutil\inc balutil.lib @@ -63,8 +68,11 @@ + + + + - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. diff --git a/src/mbanative/runtime.win.WixToolset.Mba.Core.nuspec b/src/mbanative/runtime.win.WixToolset.Mba.Core.nuspec new file mode 100644 index 00000000..a8546092 --- /dev/null +++ b/src/mbanative/runtime.win.WixToolset.Mba.Core.nuspec @@ -0,0 +1,19 @@ + + + + $id$ + $version$ + WiX Toolset Team + WiX Toolset Team + MS-RL + https://github.com/wixtoolset/balutil + false + $description$ + $copyright$ + + + + + + + diff --git a/src/test/WixToolsetTest.Mba.Core/WixToolsetTest.Mba.Core.csproj b/src/test/WixToolsetTest.Mba.Core/WixToolsetTest.Mba.Core.csproj index 9959e261..8691f89f 100644 --- a/src/test/WixToolsetTest.Mba.Core/WixToolsetTest.Mba.Core.csproj +++ b/src/test/WixToolsetTest.Mba.Core/WixToolsetTest.Mba.Core.csproj @@ -5,7 +5,7 @@ netcoreapp3.1 false - AnyCPU;x86;x64 + win-x86 -- cgit v1.2.3-55-g6feb