Skip to content

Commit

Permalink
Nuget fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sn4k3 committed Sep 17, 2023
1 parent 28b6947 commit b480570
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 33 deletions.
80 changes: 50 additions & 30 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,41 +1,61 @@
<Project>
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>

<Authors>Tiago Conceição, sn4k3</Authors>
<Company>PTRTECH</Company>
<Copyright>Copyright 2020-$([System.DateTime]::Now.ToString(`yyyy`)) © PTRTECH</Copyright>
<Description>MSLA/DLP, file analysis, calibration, repair, conversion and manipulation</Description>
<Authors>Tiago Conceição, sn4k3</Authors>
<Company>PTRTECH</Company>
<Copyright>Copyright 2020-$([System.DateTime]::Now.ToString(`yyyy`)) © PTRTECH</Copyright>
<Description>MSLA/DLP, file analysis, calibration, repair, conversion and manipulation</Description>

<ApplicationIcon>$(MSBuildThisFileDirectory)UVtools.CAD\UVtools.ico</ApplicationIcon>
<PackageIcon>$(MSBuildThisFileDirectory)UVtools.CAD\UVtools.png</PackageIcon>
<PackageLicenseExpression>AGPL-3.0</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryUrl>https://github.com/sn4k3/UVtools</RepositoryUrl>
<PackageProjectUrl>https://github.com/sn4k3/UVtools</PackageProjectUrl>
<PackageReleaseNotes>https://github.com/sn4k3/UVtools/releases</PackageReleaseNotes>
<PackageTags>msla, dlp, resin, printer, slicer, 3d printing, image processing, layers</PackageTags>
<RepositoryType>Git</RepositoryType>
<ApplicationIcon>$(MSBuildThisFileDirectory)UVtools.CAD\UVtools.ico</ApplicationIcon>
<PackageIcon>UVtools.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>AGPL-3.0</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryUrl>https://github.com/sn4k3/UVtools</RepositoryUrl>
<PackageProjectUrl>https://github.com/sn4k3/UVtools</PackageProjectUrl>
<PackageReleaseNotes>https://github.com/sn4k3/UVtools/releases</PackageReleaseNotes>
<PackageTags>msla, dlp, resin, printer, slicer, 3d printing, image processing, layers</PackageTags>
<RepositoryType>Git</RepositoryType>

<Nullable>enable</Nullable>
<Nullable>enable</Nullable>

<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)build\UVtools.snk</AssemblyOriginatorKeyFile>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)build\UVtools.snk</AssemblyOriginatorKeyFile>

<PathMap>$(MSBuildProjectDirectory)=$(MSBuildProjectName)</PathMap>
<PathMap>$(MSBuildProjectDirectory)=$(MSBuildProjectName)</PathMap>
</PropertyGroup>

<Choose>
<When Condition="Exists('$(MSBuildProjectDirectory)README.md')">
<PropertyGroup>
<PackageReadmeFile>$(MSBuildProjectDirectory)README.md"</PackageReadmeFile>
</PropertyGroup>
</When>
<When Condition="Exists('$(MSBuildThisFileDirectory)README.md')">
<PropertyGroup>
<PackageReadmeFile>$(MSBuildThisFileDirectory)README.md"</PackageReadmeFile>
</PropertyGroup>
</When>
</Choose>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)UVtools.CAD\UVtools.png" Pack="true" PackagePath="" Visible="false"/>
</ItemGroup>

<Choose>
<When Condition="Exists('$(MSBuildProjectDirectory)\README.md')">
<ItemGroup>
<None Include="$(MSBuildProjectDirectory)\README.md" Pack="true" PackagePath="" Visible="false"/>
</ItemGroup>
</When>
<When Condition="Exists('$(MSBuildThisFileDirectory)README.md')">
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="" Visible="false"/>
</ItemGroup>
</When>
</Choose>

<!--
<Target Name="ShowReservedProperties" AfterTargets="BeforeBuild">
<Message Text=" MSBuildThisFileDirectory = $(MSBuildThisFileDirectory)" Importance="high" />
<Message Text=" MSBuildProjectDirectory = $(MSBuildProjectDirectory)" Importance="high" />
<Message Text=" MSBuildProjectFile = $(MSBuildProjectFile)" Importance="high" />
<Message Text=" MSBuildProjectExtension = $(MSBuildProjectExtension)" Importance="high" />
<Message Text=" MSBuildProjectFullPath = $(MSBuildProjectFullPath)" Importance="high" />
<Message Text=" MSBuildProjectName = $(MSBuildProjectName)" Importance="high" />
<Message Text=" MSBuildBinPath = $(MSBuildBinPath)" Importance="high" />
<Message Text=" MSBuildProjectDefaultTargets = $(MSBuildProjectDefaultTargets)" Importance="high" />
<Message Text=" MSBuildExtensionsPath = $(MSBuildExtensionsPath)" Importance="high" />
<Message Text=" MSBuildStartupDirectory = $(MSBuildStartupDirectory)" Importance="high"/>
</Target>
-->

</Project>
4 changes: 2 additions & 2 deletions UVtools.AvaloniaControls/UVtools.AvaloniaControls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
- ExtendedNumericUpDown: Initial value with a reset button and value unit label
- IndexSelector: Allow to choose an index from a collection count and display the selected number
- GroupBox: Similar to GroupBox of WinForms, it contain an Header and Content</Description>
<Version>3.0.0</Version>
<Version>3.0.1</Version>

<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/sn4k3/UVtools/tree/master/UVtools.AvaloniaControls</RepositoryUrl>
<PackageTags>Advanced image box; Extended numericupdown; Index Selector; Group Box; Avalonia</PackageTags>
<PackageTags>Advanced image box; NumericUpDown; Index Selector; Group Box; Avalonia</PackageTags>

<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyOriginatorKeyFile>UVtools.AvaloniaControls.snk</AssemblyOriginatorKeyFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (Test-Path -Path $nugetApiKeyFile -PathType Leaf)

if (Test-Path -Path $nupkg -PathType Leaf){
$nugetApiKeyFile = (Get-Content $nugetApiKeyFile)
dotnet nuget push $nupkg --api-key $nugetApiKeyFile --source https://api.nuget.org/v3/index.json
dotnet nuget push $nupkg --api-key $nugetApiKeyFile --source https://api.nuget.org/v3/index.json --skip-duplicate
#Remove-Item $nupkg
}else {
Write-Error "Nuget package publish failed!"
Expand Down

0 comments on commit b480570

Please sign in to comment.