Skip to content

Commit

Permalink
Updated the NuGet package targets to match the .NET Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa Malenfant committed May 16, 2018
1 parent 1ba9edc commit 5a352a8
Show file tree
Hide file tree
Showing 19 changed files with 58 additions and 55 deletions.
9 changes: 8 additions & 1 deletion DesktopBuild.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
@echo off
set rootdir=%~dp0
set debugbuildswitches=/p:WarningLevel=2 /nologo /v:n
set releasebuildswitches=/p:Configuration=Release /p:WarningLevel=2 /nologo /v:n
set msbuild=%PROGRAMFILES(X86)%\MSBuild\14.0\Bin\msbuild
set msbuild=%PROGRAMFILES(X86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe
if not exist "%msbuild%" set msbuild=%PROGRAMFILES(X86)%\MSBuild\14.0\Bin\MSBuild.exe
if not exist "%msbuild%" (
echo *************** Please install the prerequisites to build VTS ***************
pause
exit
)
set EnableNuGetPackageRestore=true

"%msbuild%" "%rootdir%\src\Vts.Desktop\Vts.Desktop.csproj" %debugbuildswitches%
Expand Down
10 changes: 4 additions & 6 deletions src/Vts.Desktop.Test/Vts.Desktop.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="MathNet.Numerics, Version=4.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net40\MathNet.Numerics.dll</HintPath>
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="Meta.Numerics, Version=4.0.7.0, Culture=neutral, PublicKeyToken=67d25c65a6631347, processorArchitecture=MSIL">
<HintPath>..\packages\Meta.Numerics.4.0.7\lib\netstandard1.1\Meta.Numerics.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net40\Newtonsoft.Json.dll</HintPath>
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="nunit.framework, Version=3.10.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.10.1\lib\net40\nunit.framework.dll</HintPath>
<HintPath>..\packages\NUnit.3.10.1\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
Expand Down Expand Up @@ -342,6 +342,7 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
Expand All @@ -358,9 +359,6 @@
<Content Include="App_Readme\MathNet.Numerics.copyright.txt" />
<Content Include="App_Readme\MathNet.Numerics.readme.txt" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down
8 changes: 4 additions & 4 deletions src/Vts.Desktop.Test/packages.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net40" requireReinstallation="true" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net461" />
<package id="Meta.Numerics" version="4.0.7" targetFramework="net461" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net40" requireReinstallation="true" />
<package id="NUnit" version="3.10.1" targetFramework="net40" requireReinstallation="true" />
<package id="NUnit3TestAdapter" version="3.10.0" targetFramework="net40" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
<package id="NUnit" version="3.10.1" targetFramework="net461" />
<package id="NUnit3TestAdapter" version="3.10.0" targetFramework="net461" />
</packages>
30 changes: 14 additions & 16 deletions src/Vts.Desktop/Vts.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,23 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="AutoMapper, Version=6.2.2.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
<HintPath>..\packages\AutoMapper.6.2.2\lib\net40\AutoMapper.dll</HintPath>
<Private>True</Private>
<HintPath>..\packages\AutoMapper.6.2.2\lib\net45\AutoMapper.dll</HintPath>
</Reference>
<Reference Include="CommonServiceLocator, Version=2.0.3.0, Culture=neutral, PublicKeyToken=489b6accfaf20ef0, processorArchitecture=MSIL">
<HintPath>..\packages\Unity.5.8.6\lib\net46\CommonServiceLocator.dll</HintPath>
</Reference>
<Reference Include="MathNet.Numerics, Version=4.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net40\MathNet.Numerics.dll</HintPath>
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="Meta.Numerics, Version=4.0.7.0, Culture=neutral, PublicKeyToken=67d25c65a6631347, processorArchitecture=MSIL">
<HintPath>..\packages\Meta.Numerics.4.0.7\lib\netstandard1.1\Meta.Numerics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="MPFitLib, Version=1.1.1.0, Culture=neutral, PublicKeyToken=be1b3c0b5819660a, processorArchitecture=MSIL">
<HintPath>..\packages\csmpfit.1.1.1\lib\net20\MPFitLib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net40\Newtonsoft.Json.dll</HintPath>
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>..\packages\NLog.4.5.3\lib\net45\NLog.dll</HintPath>
Expand All @@ -99,18 +97,17 @@
</Reference>
<Reference Include="System.IO.Compression" />
<Reference Include="System.Numerics" />
<Reference Include="System.Reactive.Core">
<HintPath>..\packages\Rx-Core.2.2.4\lib\net40\System.Reactive.Core.dll</HintPath>
<Reference Include="System.Reactive.Core, Version=2.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Rx-Core.2.2.4\lib\net45\System.Reactive.Core.dll</HintPath>
</Reference>
<Reference Include="System.Reactive.Interfaces">
<HintPath>..\packages\Rx-Interfaces.2.2.4\lib\net40\System.Reactive.Interfaces.dll</HintPath>
<Reference Include="System.Reactive.Interfaces, Version=2.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Rx-Interfaces.2.2.4\lib\net45\System.Reactive.Interfaces.dll</HintPath>
</Reference>
<Reference Include="System.Reactive.Linq">
<HintPath>..\packages\Rx-Linq.2.2.4\lib\net40\System.Reactive.Linq.dll</HintPath>
<Reference Include="System.Reactive.Linq, Version=2.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Rx-Linq.2.2.4\lib\net45\System.Reactive.Linq.dll</HintPath>
</Reference>
<Reference Include="System.Reactive.PlatformServices, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Rx-PlatformServices.2.2.4\lib\net40\System.Reactive.PlatformServices.dll</HintPath>
<Reference Include="System.Reactive.PlatformServices, Version=2.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Rx-PlatformServices.2.2.4\lib\net45\System.Reactive.PlatformServices.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
Expand Down Expand Up @@ -1208,7 +1205,6 @@
<EmbeddedResource Include="..\Vts\Modeling\Resources\ReferenceData\N1e8mua0musp1g0p8dr0p2dt0p005\ROfFxAndTime">
<Link>Modeling\Resources\ReferenceData\N1e8mua0musp1g0p8dr0p2dt0p005\ROfFxAndTime</Link>
</EmbeddedResource>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
Expand All @@ -1227,7 +1223,9 @@
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
18 changes: 9 additions & 9 deletions src/Vts.Desktop/packages.config
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AutoMapper" version="6.2.2" targetFramework="net40" requireReinstallation="true" />
<package id="csmpfit" version="1.1.1" targetFramework="net40" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net40" requireReinstallation="true" />
<package id="AutoMapper" version="6.2.2" targetFramework="net461" />
<package id="csmpfit" version="1.1.1" targetFramework="net461" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net461" />
<package id="Meta.Numerics" version="4.0.7" targetFramework="net461" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net40" requireReinstallation="true" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
<package id="NLog" version="4.5.3" targetFramework="net461" />
<package id="Rx-Core" version="2.2.4" targetFramework="net40" requireReinstallation="true" />
<package id="Rx-Interfaces" version="2.2.4" targetFramework="net40" requireReinstallation="true" />
<package id="Rx-Linq" version="2.2.4" targetFramework="net40" requireReinstallation="true" />
<package id="Rx-Main" version="2.2.2" targetFramework="net40" />
<package id="Rx-PlatformServices" version="2.2.4" targetFramework="net40" requireReinstallation="true" />
<package id="Rx-Core" version="2.2.4" targetFramework="net461" />
<package id="Rx-Interfaces" version="2.2.4" targetFramework="net461" />
<package id="Rx-Linq" version="2.2.4" targetFramework="net461" />
<package id="Rx-Main" version="2.2.2" targetFramework="net461" />
<package id="Rx-PlatformServices" version="2.2.4" targetFramework="net461" />
<package id="Unity" version="5.8.6" targetFramework="net461" />
</packages>
2 changes: 1 addition & 1 deletion src/Vts.MGRTE.ConsoleApp/Vts.MGRTE.ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="MathNet.Numerics, Version=4.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net40\MathNet.Numerics.dll</HintPath>
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion src/Vts.MGRTE.ConsoleApp/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net40" requireReinstallation="true" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net461" />
<package id="NLog" version="4.5.3" targetFramework="net461" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="MathNet.Numerics, Version=4.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net40\MathNet.Numerics.dll</HintPath>
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="nunit.framework, Version=3.10.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.10.1\lib\net40\nunit.framework.dll</HintPath>
<HintPath>..\packages\NUnit.3.10.1\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net40" requireReinstallation="true" />
<package id="NUnit" version="3.10.1" targetFramework="net40" requireReinstallation="true" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net461" />
<package id="NUnit" version="3.10.1" targetFramework="net461" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="MathNet.Numerics, Version=4.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net40\MathNet.Numerics.dll</HintPath>
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion src/Vts.MonteCarlo.CommandLineApplication/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net40" requireReinstallation="true" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net461" />
<package id="NLog" version="4.5.3" targetFramework="net461" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="MathNet.Numerics, Version=4.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net40\MathNet.Numerics.dll</HintPath>
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="nunit.framework, Version=3.10.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.10.1\lib\net40\nunit.framework.dll</HintPath>
<HintPath>..\packages\NUnit.3.10.1\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
4 changes: 2 additions & 2 deletions src/Vts.MonteCarlo.PostProcessor.Test/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net40" requireReinstallation="true" />
<package id="NUnit" version="3.10.1" targetFramework="net40" requireReinstallation="true" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net461" />
<package id="NUnit" version="3.10.1" targetFramework="net461" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="MathNet.Numerics, Version=4.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net40\MathNet.Numerics.dll</HintPath>
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion src/Vts.MonteCarlo.PostProcessor/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net40" requireReinstallation="true" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net461" />
<package id="NLog" version="4.5.3" targetFramework="net461" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="MathNet.Numerics, Version=4.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net40\MathNet.Numerics.dll</HintPath>
<HintPath>..\packages\MathNet.Numerics.4.4.0\lib\net461\MathNet.Numerics.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
Expand Down
2 changes: 1 addition & 1 deletion src/Vts.ReportForwardSolvers.Desktop/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net40" requireReinstallation="true" />
<package id="MathNet.Numerics" version="4.4.0" targetFramework="net461" />
</packages>
2 changes: 1 addition & 1 deletion src/Vts.Test/Vts.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
<PackageReference Include="NUnit" Version="3.10.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Vts/Vts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@
<PackageReference Include="AutoMapper" Version="6.2.2" />
<PackageReference Include="CommonServiceLocator" Version="2.0.3" />
<PackageReference Include="csmpfit" Version="1.1.1" />
<PackageReference Include="MathNet.Numerics" Version="4.4.0" />
<PackageReference Include="MathNet.Numerics" Version="4.4.1" />
<PackageReference Include="Meta.Numerics" Version="4.0.7" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="NLog" Version="4.5.3" />
<PackageReference Include="NLog" Version="4.5.4" />
<PackageReference Include="System.Reactive" Version="4.0.0-preview00001" />
<PackageReference Include="System.Reflection" Version="4.3.0" />
<PackageReference Include="Unity" Version="5.8.6" />
Expand Down

0 comments on commit 5a352a8

Please sign in to comment.