Some work on publishing a nuget package

Run `dotnet build -c Release; dotnet pack` from the Velopack.Build directory
This commit is contained in:
Kevin Bost
2024-03-10 23:19:49 -07:00
parent c59a970e16
commit 8b9f51c21f
4 changed files with 34 additions and 20 deletions

View File

@@ -20,7 +20,7 @@
<Product>Velopack</Product>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Copyright>Copyright © Caelan Sayler 2021</Copyright>
<Authors>Caelan Sayler</Authors>
<Authors>Caelan Sayler;Kevin Bost</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/velopack/velopack</PackageProjectUrl>
<RepositoryUrl>https://github.com/velopack/velopack</RepositoryUrl>
@@ -30,7 +30,6 @@
<ItemGroup Condition=" '$(MSBuildProjectExtension)'=='.csproj' ">
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.*" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
<PackageReference Include="NuGetizer" Version="1.2.1" PrivateAssets="all" Condition=" '$(NoNuGetizer)'=='' " />
</ItemGroup>
<PropertyGroup Condition=" '$(MSBuildProjectExtension)'=='.vcxproj' ">

View File

@@ -5,13 +5,18 @@
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>
<SignAssembly>false</SignAssembly>
<!--
<!--
https://learn.microsoft.com/dotnet/core/project-sdk/msbuild-props?WT.mc_id=DT-MVP-5003472#copylocallockfileassemblies
-->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PackDependencies>true</PackDependencies>
<PackTransitive>true</PackTransitive>
<NoWarn>$(NoWarn);NU5128</NoWarn>
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>
<PropertyGroup>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);IncludeTfmDependenciesInPackage</TargetsForTfmSpecificContentInPackage>
</PropertyGroup>
<PropertyGroup>
@@ -27,13 +32,11 @@
</PropertyGroup>
<ItemGroup>
<PackInference Include="Compile" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Velopack.Packaging.Unix\Velopack.Packaging.Unix.csproj" PrivateAssets="all" PackInclude="all" />
<ProjectReference Include="..\Velopack.Packaging.Windows\Velopack.Packaging.Windows.csproj" PrivateAssets="all" PackInclude="all" />
<ProjectReference Include="..\Velopack\Velopack.csproj" PrivateAssets="all" PackInclude="all" />
<ProjectReference Include="..\Velopack.Packaging.Unix\Velopack.Packaging.Unix.csproj"
PrivateAssets="all" />
<ProjectReference Include="..\Velopack.Packaging.Windows\Velopack.Packaging.Windows.csproj"
PrivateAssets="all" />
<ProjectReference Include="..\Velopack\Velopack.csproj" />
</ItemGroup>
<ItemGroup>
@@ -68,6 +71,14 @@
<None Include="..\..\artwork\DefaultApp_64.png" Pack="true" PackagePath="vendor/" />
</ItemGroup>
<Target Name="IncludeTfmDependenciesInPackage">
<ItemGroup>
<TfmSpecificPackageFile Include="$(TargetDir)*.*">
<PackagePath>build\$(TargetFramework)</PackagePath>
</TfmSpecificPackageFile>
</ItemGroup>
</Target>
<!--<PropertyGroup>
</PropertyGroup>
@@ -94,30 +105,35 @@
</ItemGroup>
<PropertyGroup Label="Windows" Condition="$([System.OperatingSystem]::IsWindows())">
<VelopackRustOutputDirectory>..\Rust\target\$(Configuration.ToLower())</VelopackRustOutputDirectory>
<VelopackRustOutputDirectory>..\Rust\target\$(Configuration.ToLower())</VelopackRustOutputDirectory>
<VelopackUpdateExe>update.exe</VelopackUpdateExe>
<VelopackStubExe>stub.exe</VelopackStubExe>
<VelopackSetupExe>setup.exe</VelopackSetupExe>
</PropertyGroup>
<ItemGroup Condition="$([System.OperatingSystem]::IsWindows())">
<None Include="..\Rust\target\$(Configuration.ToLower())\$(VelopackUpdateExe)" Link="$(VelopackUpdateExe)" Visible="false">
<None Include="..\Rust\target\$(Configuration.ToLower())\$(VelopackUpdateExe)"
Link="$(VelopackUpdateExe)" Visible="false">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\Rust\target\$(Configuration.ToLower())\$(VelopackStubExe)" Link="$(VelopackStubExe)" Visible="false">
<None Include="..\Rust\target\$(Configuration.ToLower())\$(VelopackStubExe)"
Link="$(VelopackStubExe)" Visible="false">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\Rust\target\$(Configuration.ToLower())\$(VelopackSetupExe)" Link="$(VelopackSetupExe)" Visible="false">
<None Include="..\Rust\target\$(Configuration.ToLower())\$(VelopackSetupExe)"
Link="$(VelopackSetupExe)" Visible="false">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\vendor\rcedit.exe" Link="rcedit.exe" Visible="false" Condition="$([System.OperatingSystem]::IsWindows())">
<None Include="..\..\vendor\rcedit.exe" Link="rcedit.exe" Visible="false"
Condition="$([System.OperatingSystem]::IsWindows())">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\vendor\zstd.exe" Link="zstd.exe" Visible="false" Condition="$([System.OperatingSystem]::IsWindows())">
<None Include="..\..\vendor\zstd.exe" Link="zstd.exe" Visible="false"
Condition="$([System.OperatingSystem]::IsWindows())">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>-->
</Project>
</Project>

View File

@@ -8,7 +8,7 @@
-->
<VelopackStronglyTyped_TFM Condition=" '$(MSBuildRuntimeType)' != 'Core' ">net472</VelopackStronglyTyped_TFM>
<VelopackStronglyTyped_TFM Condition=" '$(MSBuildRuntimeType)' == 'Core' ">net6.0</VelopackStronglyTyped_TFM>
<VelopackBuildDll>$(MSBuildThisFileDirectory)..\lib\$(VelopackStronglyTyped_TFM)\Velopack.Build.dll</VelopackBuildDll>
<VelopackBuildDll>$(MSBuildThisFileDirectory)$(VelopackStronglyTyped_TFM)\Velopack.Build.dll</VelopackBuildDll>
</PropertyGroup>
<UsingTask TaskName="Velopack.Build.PackTask" AssemblyFile="$(VelopackBuildDll)"/>

View File

@@ -16,7 +16,6 @@
<PackageIcon>Velopack_200.png</PackageIcon>
<LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);CA2007;CS8002</NoWarn>
<NoNuGetizer>true</NoNuGetizer>
</PropertyGroup>
<ItemGroup>