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

View file

@ -5,10 +5,17 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>SMBLibrary.Win32</AssemblyName> <AssemblyName>SMBLibrary.Win32</AssemblyName>
<RootNamespace>SMBLibrary.Win32</RootNamespace> <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> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" /> <ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' != 'Release'">
<ProjectReference Include="..\Utilities\Utilities.csproj" /> <ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup> </ItemGroup>

View file

@ -5,10 +5,19 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>SMBLibrary</AssemblyName> <AssemblyName>SMBLibrary</AssemblyName>
<RootNamespace>SMBLibrary</RootNamespace> <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> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Utilities\Utilities.csproj" /> <ProjectReference Include="..\Utilities\Utilities.csproj" PrivateAssets="All" />
</ItemGroup> </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> </Project>

View file

@ -12,16 +12,20 @@
<ItemGroup Condition=" '$(TargetFramework)' == 'net20' "> <ItemGroup Condition=" '$(TargetFramework)' == 'net20' ">
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SMBLibrary.Win32\SMBLibrary.Win32.csproj" /> <ProjectReference Include="..\SMBLibrary.Win32\SMBLibrary.Win32.csproj" />
<ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" /> <ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)' != 'Release'">
<ProjectReference Include="..\Utilities\Utilities.csproj" /> <ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Update="Settings.xml"> <None Update="Settings.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None> </None>
</ItemGroup> </ItemGroup>
</Project> </Project>