mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Some work on publishing a nuget package
Run `dotnet build -c Release; dotnet pack` from the Velopack.Build directory
This commit is contained in:
@@ -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' ">
|
||||
|
||||
@@ -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>
|
||||
@@ -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)"/>
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
<PackageIcon>Velopack_200.png</PackageIcon>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<NoWarn>$(NoWarn);CA2007;CS8002</NoWarn>
|
||||
<NoNuGetizer>true</NoNuGetizer>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user