Skip to content

Commit

Permalink
Merge pull request #146 from CANopenNode/changed_net6_to_net8
Browse files Browse the repository at this point in the history
Replace .net6 with .net8
  • Loading branch information
trojanobelix authored Nov 11, 2024
2 parents c726e46 + 11b8eff commit 05daa2e
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
dotnet: [net481, net6]
dotnet: [net481, net8]
configuration: [Debug, Release]

runs-on: windows-latest
Expand Down
8 changes: 4 additions & 4 deletions EDSEditorGUI/EDSEditorGUI.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildNet481)' == 'true'">net481</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet6)' == 'true'">net6.0-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net6.0-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet8)' == 'true'">net8.0-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net8.0-windows</TargetFrameworks>
<OutputType>WinExe</OutputType>
<RootNamespace>ODEditor</RootNamespace>
<AssemblyName>EDSEditor</AssemblyName>
Expand Down Expand Up @@ -99,8 +99,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="SourceGrid" Version="4.4.0" Condition="'$(TargetFramework)' == 'net481'"/>
<PackageReference Include="SourceGrid-huanlin" Version="6.0.10" Condition="'$(TargetFramework)' == 'net6.0-windows'"/>
<PackageReference Include="System.Resources.Extensions" Version="6.0.0" Condition="'$(TargetFramework)' == 'net6.0-windows'"/>
<PackageReference Include="SourceGrid-huanlin" Version="6.0.10" Condition="'$(TargetFramework)' == 'net8.0-windows'"/>
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" Condition="'$(TargetFramework)' == 'net8.0-windows'"/>
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
</ItemGroup>
<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions EDSSharp/EDSSharp.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildNet481)' == 'true'">net481</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet6)' == 'true'">net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet8)' == 'true'">net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net8.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildNet481)' == 'true'">net481</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet6)' == 'true'">net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet8)' == 'true'">net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net8.0</TargetFrameworks>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions libEDSsharp/CanOpenXDD_1_1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ public EDSsharp ReadProtobuf(string file, bool json)
{
var parserConfig = new JsonParser.Settings(100);
var parser = new JsonParser(parserConfig);
devCanOpen = parser.Parse<CanOpenDevice>(File.ReadAllText(file));
devCanOpen = parser.Parse<CanOpenDevice>(System.IO.File.ReadAllText(file));
}
else
{
using (var input = File.OpenRead(file))
using (var input = System.IO.File.OpenRead(file))
{
devCanOpen = CanOpenDevice.Parser.ParseFrom(input);
}
Expand Down Expand Up @@ -263,11 +263,11 @@ public void WriteProtobuf(string file, EDSsharp eds, bool json)
var formatterConfig = new JsonFormatter.Settings(true).WithIndentation().WithFormatDefaultValues(true);
var formatter = new JsonFormatter(formatterConfig);
var rawJsonString = formatter.Format(dev);
File.WriteAllText(file, rawJsonString);
System.IO.File.WriteAllText(file, rawJsonString);
}
else
{
using (var output = File.Create(file))
using (var output = System.IO.File.Create(file))
{
dev.WriteTo(output);
}
Expand Down
6 changes: 3 additions & 3 deletions libEDSsharp/CanOpenXSD_1_0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4999,14 +4999,14 @@ public bool numberSpecified
public partial class dictionary

Check warning on line 4999 in libEDSsharp/CanOpenXSD_1_0.cs

View workflow job for this annotation

GitHub Actions / build (net8, Debug)

The type name 'dictionary' only contains lower-cased ascii characters. Such names may become reserved for the language.
{

private file fileField;
private File fileField;

private string langField;

private string dictIDField;

/// <remarks/>
public file file
public File file
{
get
{
Expand Down Expand Up @@ -5054,7 +5054,7 @@ public string dictID
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.canopen.org/xml/1.0")]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.canopen.org/xml/1.0", IsNullable = false)]
public partial class file
public partial class File
{

private string uRIField;
Expand Down
10 changes: 5 additions & 5 deletions libEDSsharp/CanOpenXSD_1_1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4357,10 +4357,10 @@ public bool multipleChilds {
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.canopen.org/xml/1.1", IsNullable=false)]
public partial class fileList {

private file fileField;
private File fileField;

/// <remarks/>
public file file {
public File file {
get {
return this.fileField;
}
Expand All @@ -4377,7 +4377,7 @@ public file file {
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.canopen.org/xml/1.1")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.canopen.org/xml/1.1", IsNullable=false)]
public partial class file {
public partial class File {

private string uRIField;

Expand Down Expand Up @@ -4867,14 +4867,14 @@ public bool numberSpecified {
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://www.canopen.org/xml/1.1", IsNullable=false)]
public partial class dictionary {

Check warning on line 4868 in libEDSsharp/CanOpenXSD_1_1.cs

View workflow job for this annotation

GitHub Actions / build (net8, Release)

The type name 'dictionary' only contains lower-cased ascii characters. Such names may become reserved for the language.

private file fileField;
private File fileField;

private string langField;

private string dictIDField;

/// <remarks/>
public file file {
public File file {
get {
return this.fileField;
}
Expand Down
6 changes: 3 additions & 3 deletions libEDSsharp/libEDSsharp.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk" InitialTargets="AssignInformationalVersion">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildNet481)' == 'true'">net481</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet6)' == 'true'">net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildNet8)' == 'true'">net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net481;net8.0</TargetFrameworks>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>

Expand Down Expand Up @@ -44,7 +44,7 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.CodeDom" Version="6.0.0" Condition="'$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="System.CodeDom" Version="8.0.0" Condition="'$(TargetFramework)' == 'net8.0'" />
<PackageReference Include="Google.Protobuf" Version="3.27.2" />
<PackageReference Include="Google.Protobuf.Tools" Version="3.27.2" />
</ItemGroup>
Expand Down

0 comments on commit 05daa2e

Please sign in to comment.