Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update target framework from 6.0 to 9.0 #219

Merged
merged 5 commits into from
Feb 1, 2025
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
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
dotnet-version: ['9.0.x']
include:
- os: macos-latest
arch: arm64
- os: ubuntu-latest
dotnet-version: '6.0.x'
arch: 'x64'
arch: x64
- os: windows-latest
dotnet-version: '6.0.x'
arch: 'x64'
- os: macos-latest
dotnet-version: '6.0.x'
arch: 'arm64'
arch: x64
steps:
- uses: actions/checkout@v4
- name: Setup .NET ${{ matrix.dotnet-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
dotnet-version: '9.0'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions Benchmark/Benchmark.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Genometric.MSPC.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion CLI.Tests/CLI.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<IsPackable>false</IsPackable>

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

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<StartupObject>Genometric.MSPC.CLI.Program</StartupObject>
<ApplicationIcon />
<Win32Resource />
Expand Down
2 changes: 1 addition & 1 deletion Core.Tests/Core.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<IsPackable>false</IsPackable>

Expand Down
2 changes: 1 addition & 1 deletion Core/Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>Genometric.MSPC.Core</RootNamespace>
<PackageId>Genometric.MSPC.Core</PackageId>
<Authors>https://github.com/Genometric/MSPC/graphs/contributors</Authors>
Expand Down
4 changes: 2 additions & 2 deletions ValidationScripts/ValidationScripts.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>6.0.0</Version>
Expand Down
27 changes: 11 additions & 16 deletions website/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,31 @@ or [Bioconductor user guide](https://bioconductor.org/packages/release/bioc/vign
for installing/using it in R programming language.


A prerequisite for MSPC installation is [.NET 5.0](https://dotnet.microsoft.com/download/dotnet/5.0)
A prerequisite for MSPC installation is [.NET 9.0](https://dotnet.microsoft.com/download/dotnet/9.0)
or newer. We provide two methods for MSPC installation depending on whether
.NET 5.0 is installed on your machine or you can install it,
or .NET 5.0 is not installed and you cannot install it, respectively
.NET 9.0 is installed on your machine or you can install it,
or .NET 9.0 is not installed and you cannot install it, respectively
[Method A](#method-a) or [Method B](#method-b).


## Method A: Framework Dependent

First we check if .NET 5.0 is installed (not to be confused with .NET Framework), and install it if it is not, then we install MSPC.
First we check if .NET 9.0 is installed (not to be confused with .NET Framework), and install it if it is not, then we install MSPC.

### Install .NET 5.0
### Install .NET 9.0
Open a command line shell (e.g., PowerShell) and run the following command:

```shell
$ dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.102
Commit: 71365b4d42

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19042
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.102\
.NET SDK:
Version: 9.0.102
Commit: cb83cd4923
Workload version: 9.0.100-manifests.4a54b1a6
MSBuild version: 17.12.18+ed8c6aec5
```

If the output is not as shown above, you would need to install
.NET 5.0 (or newer) [following these instructions](https://dotnet.microsoft.com/download/dotnet/5.0).
.NET 9.0 (or newer) [following these instructions](https://dotnet.microsoft.com/download/dotnet/9.0).


### Install MSPC
Expand Down
Loading