Modified Release configuration to support Nuget package creation

This commit is contained in:
TalAloni 2020-02-15 17:16:13 +02:00
parent b233b87d00
commit a1961e94ba
4 changed files with 28 additions and 3 deletions

View file

@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net40</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
@ -10,6 +11,9 @@
<ItemGroup>
<ProjectReference Include="..\SMBLibrary.Win32\SMBLibrary.Win32.csproj" />
<ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' != 'Release'">
<ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup>
@ -18,4 +22,5 @@
<HintPath>Components\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

View file

@ -5,10 +5,17 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>SMBLibrary.Win32</AssemblyName>
<RootNamespace>SMBLibrary.Win32</RootNamespace>
<Authors>Tal Aloni</Authors>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/TalAloni/SMBLibrary</PackageProjectUrl>
<RepositoryUrl>https://github.com/TalAloni/SMBLibrary</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' != 'Release'">
<ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup>

View file

@ -5,10 +5,19 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>SMBLibrary</AssemblyName>
<RootNamespace>SMBLibrary</RootNamespace>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Authors>Tal Aloni</Authors>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/TalAloni/SMBLibrary</PackageProjectUrl>
<RepositoryUrl>https://github.com/TalAloni/SMBLibrary</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Utilities\Utilities.csproj" />
<ProjectReference Include="..\Utilities\Utilities.csproj" PrivateAssets="All" />
</ItemGroup>
<Target Name="ILRepack" Condition="'$(Configuration)' == 'Release'" AfterTargets="AfterBuild">
<Exec Command="&quot;$(ProgramW6432)\ILRepack\ILRepack.exe&quot; /out=&quot;$(OutputPath)\SMBLibrary.dll&quot; &quot;$(OutputPath)\SMBLibrary.dll&quot; &quot;$(OutputPath)\Utilities.dll&quot;"></Exec>
</Target>
</Project>

View file

@ -16,6 +16,9 @@
<ItemGroup>
<ProjectReference Include="..\SMBLibrary.Win32\SMBLibrary.Win32.csproj" />
<ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' != 'Release'">
<ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup>
@ -24,4 +27,5 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>