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
4 changes: 3 additions & 1 deletion InnoSetup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ OutputBaseFilename=NETworkManager_{#MyAppVersion}_Setup
Compression=lzma
SolidCompression=yes
WizardStyle=modern
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
WizardSmallImageFile=Images\NETworkManager_Logo_InnoSetup.bmp

[Languages]
Expand All @@ -47,7 +49,7 @@ Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"

[Files]
Source: "Build\NETworkManager\NETworkManager.exe"; DestDir: "{app}"; Flags: ignoreversion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>NETworkManager.Controls</RootNamespace>
<AssemblyName>NETworkManager.Controls</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<RootNamespace>NETworkManager.Converters</RootNamespace>
<AssemblyName>NETworkManager.Converters</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DocumentationFile>bin\Debug\NETworkManager.Converters.xml</DocumentationFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<RootNamespace>NETworkManager.Documentation</RootNamespace>
<AssemblyName>NETworkManager.Documentation</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DocumentationFile>bin\Debug\NETworkManager.Documentation.xml</DocumentationFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>NETworkManager.Localization</RootNamespace>
<AssemblyName>NETworkManager.Localization</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWarn>1701;1702;CA1712</NoWarn>
Expand Down
3 changes: 2 additions & 1 deletion Source/NETworkManager.Models/NETworkManager.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<OutputType>Library</OutputType>
<RootNamespace>NETworkManager.Models</RootNamespace>
<AssemblyName>NETworkManager.Models</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<CsWinRTWindowsMetadata>sdk</CsWinRTWindowsMetadata>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>NETworkManager.Profiles</RootNamespace>
<AssemblyName>NETworkManager.Profiles</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>NETworkManager.Settings</RootNamespace>
<AssemblyName>NETworkManager.Settings</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions Source/NETworkManager.Update/NETworkManager.Update.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<RootNamespace>NETworkManager.Update</RootNamespace>
<AssemblyName>NETworkManager.Update</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>NETworkManager.Utilities.WPF</RootNamespace>
<AssemblyName>NETworkManager.Utilities.WPF</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>NETworkManager.Utilities</RootNamespace>
<AssemblyName>NETworkManager.Utilities</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<RootNamespace>NETworkManager.Validators</RootNamespace>
<AssemblyName>NETworkManager.Validators</AssemblyName>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
11 changes: 6 additions & 5 deletions Source/NETworkManager/NETworkManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<CsWinRTWindowsMetadata>sdk</CsWinRTWindowsMetadata>
<RootNamespace>NETworkManager</RootNamespace>
<AssemblyName>NETworkManager</AssemblyName>
Expand All @@ -12,9 +13,10 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<Authors>BornToBeRoot</Authors>
<PackageProjectUrl>https://github.com/BornToBeRoot/NETworkManager</PackageProjectUrl>
<RepositoryUrl>https://github.com/BornToBeRoot/NETworkManager/</RepositoryUrl>
<RepositoryUrl>https://github.com/BornToBeRoot/NETworkManager</RepositoryUrl>
<PackageLicenseFile>NETworkManager.txt</PackageLicenseFile>
<PackageIcon>NETworkManager.ico</PackageIcon>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>
<ItemGroup>
<None Remove="NETworkManager.ico" />
Expand Down Expand Up @@ -49,11 +51,7 @@
<Reference Include="MSTSCLib">
<HintPath>$(TargetDir)\MSTSCLib.dll</HintPath>
</Reference>
<Page Remove="Resources\Styles\WindowStyles.xaml" />
<Compile Include="..\GlobalAssemblyInfo.cs" Link="Properties\GlobalAssemblyInfo.cs" />
<Content Include="Resources\Styles\WindowStyles.xaml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NETworkManager.Controls\NETworkManager.Controls.csproj" />
Expand Down Expand Up @@ -86,6 +84,9 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Page Update="Resources\Styles\WindowStyles.xaml">
<CopyToOutputDirectory></CopyToOutputDirectory>
</Page>
<Page Update="Views\PortProfilesDialog.xaml">
<SubType>Designer</SubType>
</Page>
Expand Down
17 changes: 9 additions & 8 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,22 @@ if (Test-Path -Path $BuildPath) {
Remove-Item -Path $BuildPath -Recurse -ErrorAction Stop
}

# Dotnet clean, restore and build
# Dotnet clean, restore, build and publish
dotnet clean "$PSScriptRoot\Source\NETworkManager.sln"
dotnet restore "$PSScriptRoot\Source\NETworkManager.sln"
dotnet build --configuration Release "$PSScriptRoot\Source\NETworkManager.sln"

$ReleasePath = "$PSScriptRoot\Source\NETworkManager\bin\Release\net5.0-windows10.0.17763.0"
# dotnet build --configuration Release "$PSScriptRoot\Source\NETworkManager.sln"
dotnet publish --configuration Release --framework net5.0-windows10.0.17763.0 --runtime win10-x64 --self-contained false --output "$BuildPath\NETworkManager" "$PSScriptRoot\Source\NETworkManager\NETworkManager.csproj"

# Test if release build is available
if(-not(Test-Path -Path $ReleasePath))
if(-not(Test-Path -Path "$BuildPath\NETworkManager\NETworkManager.exe"))
{
Write-Error "Could not find dotnet release build. Is .NET SDK 5.0 or later installed?" -ErrorAction Stop
}

# Copy files
Copy-Item -Recurse -Path $ReleasePath -Destination "$BuildPath\NETworkManager"
# Cleanup WebView2Loader.dll (https://github.com/MicrosoftEdge/WebView2Feedback/issues/461)
Remove-Item "$BuildPath\NETworkManager\arm64" -Recurse
Remove-Item "$BuildPath\NETworkManager\x64" -Recurse
Remove-Item "$BuildPath\NETworkManager\x86" -Recurse

# Cleanup .pdb files
Get-ChildItem -Recurse | Where-Object {$_.Name.EndsWith(".pdb")} | Remove-Item
Expand All @@ -33,7 +34,7 @@ if ($IsPreview) {
New-Item -Path "$BuildPath\NETworkManager" -Name "IsPreview.settings" -ItemType File
}

# Archiv Build / Sources
# Archiv Build
Compress-Archive -Path "$BuildPath\NETworkManager" -DestinationPath "$BuildPath\NETworkManager_$($Version)_Archiv.zip"

# Portable Build
Expand Down