Skip to content

Commit

Permalink
#11 Set a fix version for dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
iBrotNano committed Mar 6, 2023
1 parent d6cb47f commit d879dcf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 7.0.3
- name: Restore dependencies
run: dotnet restore
- name: Generate package version for regular builds
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
version: ${{ env.PACKAGE_VERSION }}
git_tag_prefix: "v"
- name: Build
run: dotnet build --no-restore -c Release
run: dotnet build --no-restore -c Release -p:CONTINUOUS_INTEGRATION_BUILD=true
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
- name: Pack
Expand Down
12 changes: 12 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
<FileVersion>4.7.1.1</FileVersion>
<InformationalVersion>4.7.11</InformationalVersion>
<AssemblyVersion>4.7.1.1</AssemblyVersion>
<Authors>Marcel Melzig</Authors>
<Description>Implements a test environment.</Description>
<Copyright>© Marcel Melzig</Copyright>
<PackageTags>test environment xunit</PackageTags>
<Title>Test Environment</Title>
<PackageIcon>Seat-Belt-256.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>Git</RepositoryType>
<PackageReleaseNotes>Initial version.</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>Recommended</AnalysisMode>
<AnalysisLevel>latest</AnalysisLevel>
Expand All @@ -14,6 +24,8 @@
<DebugType>embedded</DebugType>
<PackageOutputPath>$(MSBuildThisFileDirectory)target\nugets\$(Configuration)</PackageOutputPath>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1701;1702;1591</NoWarn>
<NeutralLanguage>en</NeutralLanguage>
</PropertyGroup>

<PropertyGroup Condition="'$(CONTINUOUS_INTEGRATION_BUILD)' == 'true'">
Expand Down
24 changes: 0 additions & 24 deletions MarcelMelzig.TestEnvironment/MarcelMelzig.TestEnvironment.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,6 @@
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Authors>Marcel Melzig</Authors>
<Description>Implements a test environment.</Description>
<Copyright>© Marcel Melzig</Copyright>
<PackageTags>test environment xunit</PackageTags>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Test Environment</Title>
<PackageIcon>Seat-Belt-256.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>Git</RepositoryType>
<PackageReleaseNotes>Initial version.</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;1591</NoWarn>
<Optimize>False</Optimize>
<Deterministic>False</Deterministic>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;1591</NoWarn>
<Optimize>True</Optimize>
<Deterministic>True</Deterministic>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit d879dcf

Please sign in to comment.