diff --git a/BUILD.ps1 b/BUILD.ps1 index ddb3cf4d..d382de92 100644 --- a/BUILD.ps1 +++ b/BUILD.ps1 @@ -1,7 +1,8 @@ Write-Host 'Building' -dotnet build -p:Configuration="Release" ` - -restore ` +dotnet build ` + -c "Release" ` + -p:Platform="x64" ` Netch\Netch.csproj if ($LASTEXITCODE) { exit $LASTEXITCODE } diff --git a/Interop.nfapinet/Interop.nfapinet.csproj b/Interop.nfapinet/Interop.nfapinet.csproj index c111d58b..1e349ac0 100644 --- a/Interop.nfapinet/Interop.nfapinet.csproj +++ b/Interop.nfapinet/Interop.nfapinet.csproj @@ -1,13 +1,16 @@ - + - net5.0-windows7 + net5.0-windows7.0 latest true + Debug;Release + x64 - - none + + none + false diff --git a/Netch.sln b/Netch.sln index 815eb2b1..0a2e21a2 100644 --- a/Netch.sln +++ b/Netch.sln @@ -22,10 +22,10 @@ Global {53397641-35CA-4336-8E22-2CE12EF476AC}.Debug|x64.ActiveCfg = Debug|x64 {53397641-35CA-4336-8E22-2CE12EF476AC}.Debug|x64.Build.0 = Debug|x64 {53397641-35CA-4336-8E22-2CE12EF476AC}.Release|x64.ActiveCfg = Release|x64 - {2C968ADF-4822-46A9-A7D9-D05A61CB14DE}.Debug|x64.ActiveCfg = Debug|Any CPU - {2C968ADF-4822-46A9-A7D9-D05A61CB14DE}.Debug|x64.Build.0 = Debug|Any CPU - {2C968ADF-4822-46A9-A7D9-D05A61CB14DE}.Release|x64.ActiveCfg = Release|Any CPU - {2C968ADF-4822-46A9-A7D9-D05A61CB14DE}.Release|x64.Build.0 = Release|Any CPU + {2C968ADF-4822-46A9-A7D9-D05A61CB14DE}.Debug|x64.ActiveCfg = Debug|x64 + {2C968ADF-4822-46A9-A7D9-D05A61CB14DE}.Debug|x64.Build.0 = Debug|x64 + {2C968ADF-4822-46A9-A7D9-D05A61CB14DE}.Release|x64.ActiveCfg = Release|x64 + {2C968ADF-4822-46A9-A7D9-D05A61CB14DE}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Netch/Netch.csproj b/Netch/Netch.csproj index d31d6c8e..cb4bee4e 100644 --- a/Netch/Netch.csproj +++ b/Netch/Netch.csproj @@ -2,37 +2,35 @@ WinExe - net5.0-windows7 true true false Netch.Netch App.manifest Resources\Netch.ico - x64 - false - win-x64 - false - latest false + latest enable false Default true + + net5.0-windows + win-x64 + Debug;Release + x64 + false + false + + bin\x64\Debug\ DEBUG;TRACE - false - - - - false - bin\x64\Release\ none false @@ -60,13 +58,6 @@ - - true - false - false - false - - @@ -106,12 +97,6 @@ - - - - - - <_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\Dia2Lib.dll" /> diff --git a/Netch/Updater/Updater.cs b/Netch/Updater/Updater.cs index 23ac341d..2c4a0e52 100644 --- a/Netch/Updater/Updater.cs +++ b/Netch/Updater/Updater.cs @@ -6,7 +6,6 @@ using System.IO; using System.Linq; using System.Net; using System.Text; -using System.Windows.Threading; using Netch.Controllers; using Netch.Models; using Netch.Properties; @@ -97,7 +96,6 @@ namespace Netch.Updater private void ApplyUpdate() { - var dispatcher = Dispatcher.CurrentDispatcher; var mainForm = Global.MainForm; #region PreUpdate @@ -132,7 +130,7 @@ namespace Netch.Updater MoveAllFilesOver(Path.Combine(extractPath, "Netch"), _installDirectory); // release mutex, exit - dispatcher.Invoke(Netch.SingleInstance.Dispose); + mainForm.Invoke(new Action(Netch.SingleInstance.Dispose)); Process.Start(Global.NetchExecutable); Environment.Exit(0); } diff --git a/PUBLISH.ps1 b/PUBLISH.ps1 index 89643b97..b1796e4e 100644 --- a/PUBLISH.ps1 +++ b/PUBLISH.ps1 @@ -1,6 +1,13 @@ Write-Host 'Building' -dotnet publish -c "Release" ` +dotnet publish ` + -c "Release" ` + -r "win-x64" ` + -p:Platform="x64" ` + -p:PublishSingleFile=true ` + -p:SelfContained=false ` + -p:PublishTrimmed=false ` + -p:PublishReadyToRun=false ` -o Netch\bin\Publish\ ` Netch\Netch.csproj diff --git a/UnitTest/UnitTest.csproj b/UnitTest/UnitTest.csproj index abeb3f00..3ae0eec6 100644 --- a/UnitTest/UnitTest.csproj +++ b/UnitTest/UnitTest.csproj @@ -1,7 +1,7 @@  - net5.0-windows7 + net5.0-windows x64 true latest