Skip to content

Commit

Permalink
nuget symbol build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Nov 8, 2024
1 parent 96b24c3 commit 4030fde
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Pack Preview
if: ${{ success() && (github.event.release.prerelease || github.event_name != 'release') }}
run: |
dotnet pack -c Release --no-build --no-restore -o out --version-suffix "nightly-${{ steps.current-time.outputs.formattedTime }}"
dotnet pack -c Release --no-build --no-restore -o out --version-suffix "nightly-${{ steps.current-time.outputs.formattedTime }}" --include-symbols -p:SymbolPackageFormat=snupkg
- name: Pack Release
if: ${{ success() && !github.event.release.prerelease && github.event_name == 'release' }}
run: |
Expand All @@ -105,7 +105,7 @@ jobs:
tag: ${{ github.event.release.tag_name }}
file_glob: "true"
- name: Publish to Nuget.org
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --no-symbols
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

update-nightly:
needs: [build-test-push, activity-short-circuit]
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ImplicitUsings>true</ImplicitUsings>
<VersionPrefix>2.66</VersionPrefix>
<VersionPrefix>2.67</VersionPrefix>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<ItemGroup>
<PackageVersion Include="Noggog.CSharpExt" Version="2.65.1-nightly-20241010-092782" />
<PackageVersion Include="Noggog.CSharpExt" Version="2.67.3" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
Expand Down
2 changes: 1 addition & 1 deletion Loqui.Generation/ObjectGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public async Task Generate()
var fileName = Path.Combine(TargetDir.Path, FileName);
var file = new FileInfo(fileName);
GeneratedFiles[Path.GetFullPath(fileName)] = ProjItemType.Compile;
ExportStringToFile export = new();
ExportStringToFile export = new(IFileSystemExt.DefaultFilesystem);
export.ExportToFile(
file,
sb.GetString());
Expand Down
2 changes: 1 addition & 1 deletion Loqui.Generation/ProtocolGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private void GenerateDefFile()
}
}

ExportStringToFile export = new();
ExportStringToFile export = new(IFileSystemExt.DefaultFilesystem);
export.ExportToFile(
new FileInfo(
DefFileLocation.FullName
Expand Down
28 changes: 13 additions & 15 deletions Loqui/Loqui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@
<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
<LangVersion>Latest</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702; 1998</NoWarn>
<WarningsAsErrors>NU1605, CS4014</WarningsAsErrors>
<DocumentationFile>Loqui.xml</DocumentationFile>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702; 1998</NoWarn>
<WarningsAsErrors>NU1605, CS4014</WarningsAsErrors>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>preview</LangVersion>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<IsPackable>true</IsPackable>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<NoWarn>1701;1702; 1998</NoWarn>
<WarningsAsErrors>NU1605, CS4014</WarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 4030fde

Please sign in to comment.