Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '10.0.x'

cache: true
cache-dependency-path: |
**/*.csproj
Expand All @@ -56,6 +57,13 @@ jobs:
version-number: '16.0.1463980'
target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools\net8.0'

# TODO: Bump version when net10.0 is released on marketplace
- name: Setup BC DevTools - net10.0
uses: ./.github/actions/setup-bc-devtools
with:
version-number: '17.0.2273547'
target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools\net10.0'

- name: Restore
run: dotnet restore src/RoslynTestKit.sln

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '10.0.x'
cache: true
cache-dependency-path: |
**/*.csproj
Expand All @@ -54,6 +54,12 @@ jobs:
version-number: '16.0.1463980'
target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools\net8.0'

- name: Setup BC DevTools - net10.0
uses: ./.github/actions/setup-bc-devtools
with:
version-number: '17.0.2273547'
target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools\net10.0'

- name: Restore
run: dotnet restore src/RoslynTestKit.sln

Expand Down
21 changes: 20 additions & 1 deletion src/RoslynTestKit/RoslynTestKit.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net8.0;net10.0</TargetFrameworks>
<PackageId>ALCops.RoslynTestKit</PackageId>
<Title>RoslynTestKit</Title>
<Description>A lightweight framework for creating unit tests for Roslyn diagnostic analyzers, code fixes and refactorings.</Description>
Expand Down Expand Up @@ -56,4 +56,23 @@
<Private>False</Private>
</Reference>
</ItemGroup>

<!-- TODO: Bump version when net10.0 is released on marketplace -->
<!-- ms-dynamics-smb.al-17.0.2273547 -->
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<PackageReference Include="ApprovalTests" Version="5.8.0"
PrivateAssets="all"
ExcludeAssets="build;buildTransitive;analyzers;contentFiles;native;runtime" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.14.0" />
<Reference Include="Microsoft.Dynamics.Nav.CodeAnalysis">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\net10.0\Microsoft.Dynamics.Nav.CodeAnalysis.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\net10.0\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
</Project>
Loading