diff --git a/Directory.Build.targets b/Directory.Build.targets index dad9cc632023bd376b6105531329edba4e72fd2a..c9d5c624c5cd74c1dbdccc07c6f956cd63eb0e5d 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -37,10 +37,12 @@ <CurrentDate>$([System.DateTime]::Now.ToString(yyy_MM_dd))</CurrentDate> <DeployPath>$(SolutionDir)Deploy\$(CurrentDate)-VECTO-$(Version)\</DeployPath> <DeployPath Condition="'$(Configuration)'=='MockupDeploy'">$(SolutionDir)Deploy\$(CurrentDate)-VECTO_MOCKUP-$(Version)\</DeployPath> + <NuGetPath> $(SolutionDir)Nuget\</NuGetPath> </PropertyGroup> <RemoveDir Directories="$(SolutionDir)Deploy" Condition="Exists('$(SolutionDir)Deploy')"/> + <RemoveDir Directories="$(NuGetPath)" Condition="Exists('$(NuGetPath)')"/> <MakeDir Directories="$(DeployPath)"/> - + <MakeDir Directories="$(NuGetPath)"/> <ItemGroup Condition="'$(Configuration)'=='Deploy'"> <!-- All files for net45 --> @@ -215,6 +217,15 @@ <Copy SourceFiles="$(SolutionDir)\Documentation\User Manual Source\README for Mission Profiles Directory.txt" DestinationFiles="$(DeployPath)Mission Profiles\!! README !!.TXT"/> <Copy SourceFiles="$(SolutionDir)\Documentation\User Manual Source\README for Declaration Directory.txt" DestinationFiles="$(DeployPath)Declaration\!! README !!.TXT"/> + <!-- NuGet Files--> + <ItemGroup Condition="'$(Configuration)'=='Deploy'"> + <VectoNuget Include ="$(SolutionDir)VectoCore\VectoCore\bin\Release\*.nupkg" /> + <VectoNuget Include ="$(SolutionDir)VectoCommon\VectoCommon\bin\Release\*.nupkg" /> + <VectoNuget Include ="$(SolutionDir)VectoCommon\VectoHashing\bin\Release\*.nupkg" /> + </ItemGroup> + + <Copy SourceFiles="@(VectoNuget)" DestinationFolder ="$(NuGetPath)"/> + <PropertyGroup> <DestinationZip>$(SolutionDir)$(CurrentDate)-VECTO-$(Version).zip</DestinationZip> <DestinationZip Condition="'$(Configuration)'=='MockupDeploy'">$(SolutionDir)$(CurrentDate)-VECTO_MOCKUP-$(Version).zip</DestinationZip> diff --git a/VectoCommon/VectoCommon/VectoCommon.csproj b/VectoCommon/VectoCommon/VectoCommon.csproj index c92bd0f3f832ba3f0ab9be5fbd7cf684358b6beb..3c0b9ced862df2e47df79a28e983d3026f484a6a 100644 --- a/VectoCommon/VectoCommon/VectoCommon.csproj +++ b/VectoCommon/VectoCommon/VectoCommon.csproj @@ -4,6 +4,7 @@ <AssemblyName>VectoCommon</AssemblyName> <TargetFrameworks>net45;net48;net6.0</TargetFrameworks> <DefineConstants /> + <GeneratePackageOnBuild>True</GeneratePackageOnBuild> </PropertyGroup> <ItemGroup> diff --git a/VectoCommon/VectoHashing/VectoHashing.csproj b/VectoCommon/VectoHashing/VectoHashing.csproj index 8a059112dc7a7617cfb2b73a7c9b67ef375db87b..fedfb2abf6495f691621764d32234ea81a4421c2 100644 --- a/VectoCommon/VectoHashing/VectoHashing.csproj +++ b/VectoCommon/VectoHashing/VectoHashing.csproj @@ -9,6 +9,7 @@ <TargetFrameworks>net45;net48;net6.0</TargetFrameworks> <DefineConstants /> <Configurations>Debug;Release;MockupRelease</Configurations> + <GeneratePackageOnBuild>True</GeneratePackageOnBuild> </PropertyGroup> <ItemGroup Condition="'$(TargetFramework)' == 'net45'"> diff --git a/VectoCore/VectoCore/VectoCore.csproj b/VectoCore/VectoCore/VectoCore.csproj index 505c1cf268a4ef8733a8e8e88729d5c4a1bdebbe..5a03301443d72e5366f7a90fb561c90d7ed44fe2 100644 --- a/VectoCore/VectoCore/VectoCore.csproj +++ b/VectoCore/VectoCore/VectoCore.csproj @@ -6,6 +6,7 @@ <DefineConstants /> <Configurations>Debug;Release;MockupDebug;MockupRelease</Configurations> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> + <GeneratePackageOnBuild>True</GeneratePackageOnBuild> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='MockupDebug|net45|AnyCPU'"> <DebugType>full</DebugType>