Skip to content

Commit

Permalink
feat: Updated to net9.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Nov 13, 2024
1 parent f630ae0 commit c1479a7
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 35 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,20 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Install dependencies
run: pip install mkdocs-material
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x

- name: Generate docs
run: dotnet run --project src/helpers/GenerateDocs/GenerateDocs.csproj .

- name: Build with MkDocs
run: mkdocs build -d ./_site
run: |
python -m venv myenv
source myenv/bin/activate
pip install mkdocs-material
mkdocs build -d ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/GenerateDocs/GenerateDocs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NoWarn>$(NoWarn);CA1724;CA1303</NoWarn>
Expand Down
2 changes: 1 addition & 1 deletion src/libs/AutoSDK/AutoSDK.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net4.6.2;netstandard2.0;net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net4.6.2;netstandard2.0;net8.0;net9.0</TargetFrameworks>
<NoWarn>$(NoWarn);CA1031;CA1307;CA1724;CA1056;CA1054;CA1865;CA1847;CA2227;CA1862;CA1303;CA1867</NoWarn>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup Label="Base packages">
Expand All @@ -11,9 +11,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.2" />
<PackageReference Include="MSTest" Version="3.6.3" />
<PackageReference Include="FluentAssertions" Version="6.12.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
Expand Down
30 changes: 15 additions & 15 deletions src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ public class CliTests
{
// [DataTestMethod]
// [DataRow("github.yaml")]
[DataRow("ipinfo.yaml")]
[DataRow("langsmith.json")]
[DataRow("ollama.yaml")]
[DataRow("openai.yaml")]
[DataRow("petstore.yaml")]
[DataRow("replicate.json")]
[DataRow("huggingface.yaml")]
[DataRow("ai21.json")]
[DataRow("cohere.yaml")]
[DataRow("special-cases.yaml")]
[DataRow("twitch.json")]
[DataRow("https://dedoose-rest-api.onrender.com/swagger/v1/swagger.json")]
[DataRow("together.yaml")]
[DataRow("mystic.yaml")]
[DataRow("heygen.yaml")]
// [DataRow("ipinfo.yaml")]
// [DataRow("langsmith.json")]
// [DataRow("ollama.yaml")]
// [DataRow("openai.yaml")]
// [DataRow("petstore.yaml")]
// [DataRow("replicate.json")]
// [DataRow("huggingface.yaml")]
// [DataRow("ai21.json")]
// [DataRow("cohere.yaml")]
// [DataRow("special-cases.yaml")]
// [DataRow("twitch.json")]
// [DataRow("https://dedoose-rest-api.onrender.com/swagger/v1/swagger.json")]
// [DataRow("together.yaml")]
// [DataRow("mystic.yaml")]
// [DataRow("heygen.yaml")]
public async Task Generate(string spec)
{
var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Expand Down
12 changes: 6 additions & 6 deletions src/tests/AutoSDK.SnapshotTests/AutoSDK.SnapshotTests.csproj
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup Label="Base packages">
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="H.Generators.Extensions" Version="1.22.0" />
<PackageReference Include="H.Generators.Tests.Extensions" Version="1.22.0" />
<PackageReference Include="H.Generators.Extensions" Version="1.24.0" />
<PackageReference Include="H.Generators.Tests.Extensions" Version="1.24.0" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.22" />
<PackageReference Include="MSTest" Version="3.6.2" />
<PackageReference Include="MSTest" Version="3.6.3" />
<PackageReference Include="FluentAssertions" Version="6.12.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<ItemGroup Label="Generator tests packages">
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.MSTest" Version="1.1.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" />
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
<PackageReference Include="Verify.MSTest" Version="28.2.0" />
<PackageReference Include="System.Formats.Asn1" Version="9.0.0" />
<PackageReference Include="Verify.MSTest" Version="28.2.1" />
<PackageReference Include="Verify.SourceGenerators" Version="2.5.0" />
<PackageReference Include="H.Resources.Generator" Version="1.6.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
6 changes: 3 additions & 3 deletions src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup Label="Base packages">
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MSTest" Version="3.6.2" />
<PackageReference Include="MSTest" Version="3.6.3" />
<PackageReference Include="FluentAssertions" Version="6.12.2" />
<PackageReference Include="Verify.MSTest" Version="28.2.0" />
</ItemGroup>
Expand All @@ -30,7 +30,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="System.Text.Json" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/tests/TrimmingHelper/TrimmingHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>

<PublishTrimmed>true</PublishTrimmed>
Expand Down

0 comments on commit c1479a7

Please sign in to comment.