diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9a56aada..66158f1f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -8,6 +8,10 @@ on: jobs: build: + strategy: + matrix: + dotnet: [net481, net6] + configuration: [Debug, Release] runs-on: windows-latest # runs-on: ubuntu-latest # Error: setup-msbuild can only be run on Windows runners @@ -31,14 +35,13 @@ jobs: - name: Build # run: make all # builds the Debug configuration run: | - msbuild /property:Configuration=Release - msbuild /property:Configuration=Debug + msbuild -p:Build${{ matrix.dotnet }}=true /property:Configuration=${{ matrix.configuration }} # run: dotnet build --no-restore - name: Test run: | - dotnet test --no-build --verbosity normal + dotnet test --no-build --verbosity normal Tests\bin\${{ matrix.configuration }}\${{ matrix.dotnet }}*\tests.dll - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: EDSEditor + name: EDSEditor_${{ matrix.dotnet }} path: EDSEditorGUI\bin\Release\ diff --git a/EDSEditorGUI/DevicePDOView2.cs b/EDSEditorGUI/DevicePDOView2.cs index 71934fce..20a4bf46 100644 --- a/EDSEditorGUI/DevicePDOView2.cs +++ b/EDSEditorGUI/DevicePDOView2.cs @@ -422,7 +422,9 @@ public void UpdatePDOinfo(bool updatechoices = true) SourceGrid.Cells.Editors.ComboBox comboStandard = new SourceGrid.Cells.Editors.ComboBox(typeof(string), srray, false); + #if !NETCOREAPP comboStandard.Control.DropDownWidth = 0x100; + #endif comboStandard.Changed += ComboStandard_Changed; //tableLayoutPanel1.SuspendLayout(); diff --git a/EDSEditorGUI/EDSEditorGUI.csproj b/EDSEditorGUI/EDSEditorGUI.csproj index 0f41ac76..6a83635b 100644 --- a/EDSEditorGUI/EDSEditorGUI.csproj +++ b/EDSEditorGUI/EDSEditorGUI.csproj @@ -1,6 +1,8 @@ - + - net481 + net481 + net6.0-windows + net481;net6.0-windows WinExe ODEditor EDSEditor @@ -97,7 +99,11 @@ - + + + + + git describe --tags --long --dirty > "$(MSBuildProjectDirectory)\version.txt" || exit 0 diff --git a/EDSEditorGUI/Form1.cs b/EDSEditorGUI/Form1.cs index 46b40837..8c54fcaf 100644 --- a/EDSEditorGUI/Form1.cs +++ b/EDSEditorGUI/Form1.cs @@ -22,6 +22,7 @@ You should have received a copy of the GNU General Public License using System.Collections.Generic; using System.Drawing; using System.Linq; +using System.Runtime.InteropServices; using System.Windows.Forms; using System.IO; using libEDSsharp; @@ -1075,7 +1076,10 @@ private void documentationToolStripMenuItem_Click(object sender, EventArgs e) DocumentationGen docgen = new DocumentationGen(); docgen.genhtmldoc(temp, dv.eds); docgen.genmddoc(temp2, dv.eds, this.gitVersion); - System.Diagnostics.Process.Start("file://" + temp2); + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo("cmd", $"/c start {temp2}")); + } if (IsRunningOnMono()) { System.Diagnostics.Process.Start("file://" + temp); diff --git a/EDSSharp/EDSSharp.csproj b/EDSSharp/EDSSharp.csproj index 7b44195d..948888fe 100644 --- a/EDSSharp/EDSSharp.csproj +++ b/EDSSharp/EDSSharp.csproj @@ -1,6 +1,8 @@ - + - net481 + net481 + net6.0 + net481;net6.0 Exe false diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 5de7f6ab..5deedc04 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,6 +1,8 @@ - + - net481 + net481 + net6.0 + net481;net6.0 Library false @@ -8,6 +10,7 @@ + diff --git a/libEDSsharp/eds.cs b/libEDSsharp/eds.cs index 17cb39e2..ea6c618d 100644 --- a/libEDSsharp/eds.cs +++ b/libEDSsharp/eds.cs @@ -25,7 +25,6 @@ You should have received a copy of the GNU General Public License using System.Globalization; using System.Reflection; using CanOpenXSD_1_1; -using System.Runtime.Remoting.Messaging; using System.Net.NetworkInformation; using System.Security.Cryptography; using Xml2CSharp; diff --git a/libEDSsharp/libEDSsharp.csproj b/libEDSsharp/libEDSsharp.csproj index 751d3325..3bd702cb 100644 --- a/libEDSsharp/libEDSsharp.csproj +++ b/libEDSsharp/libEDSsharp.csproj @@ -1,6 +1,8 @@ - + - net481 + net481 + net6.0 + net481;net6.0 Library false @@ -20,4 +22,7 @@ Resources.Designer.cs + + + \ No newline at end of file