Skip to content

Commit

Permalink
Modified project properties to allow publisshing project as an exe wi…
Browse files Browse the repository at this point in the history
…th dll dependencies. (#127)

* Modified Project Properties to Publish Single EXE.
  • Loading branch information
Fahim-zzz authored Dec 2, 2024
1 parent e9421a6 commit 106ad29
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 10 deletions.
8 changes: 6 additions & 2 deletions AudioManager/AudioManager.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>Library</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<SelfContained>false</SelfContained>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>AnyCPU;x64</Platforms>
<DebugType>embedded</DebugType>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion AudioManager/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
//ApplicationConfiguration.Initialize();
}
}
1 change: 1 addition & 0 deletions DAIRemote.tests/DAIRemote.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion DAIRemote/DAIRemote.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<SelfContained>true</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<IncludeNativeLibrariesForSelfExtract>false</IncludeNativeLibrariesForSelfExtract>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<Platforms>AnyCPU;x64</Platforms>
<DebugType>embedded</DebugType>
</PropertyGroup>


Expand Down
25 changes: 24 additions & 1 deletion DAIRemote/DAIRemote.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Microsoft Visual Studio Solution File, Format Version 12.00

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35122.118
MinimumVisualStudioVersion = 10.0.40219.1
Expand All @@ -20,29 +21,51 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9456FC49-EB42-4F08-A5A6-ED49E7DA37AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9456FC49-EB42-4F08-A5A6-ED49E7DA37AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9456FC49-EB42-4F08-A5A6-ED49E7DA37AB}.Debug|x64.ActiveCfg = Debug|x64
{9456FC49-EB42-4F08-A5A6-ED49E7DA37AB}.Debug|x64.Build.0 = Debug|x64
{9456FC49-EB42-4F08-A5A6-ED49E7DA37AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9456FC49-EB42-4F08-A5A6-ED49E7DA37AB}.Release|Any CPU.Build.0 = Release|Any CPU
{9456FC49-EB42-4F08-A5A6-ED49E7DA37AB}.Release|x64.ActiveCfg = Release|x64
{9456FC49-EB42-4F08-A5A6-ED49E7DA37AB}.Release|x64.Build.0 = Release|x64
{244E9C8F-2C20-4E79-882C-CF57043146A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{244E9C8F-2C20-4E79-882C-CF57043146A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{244E9C8F-2C20-4E79-882C-CF57043146A0}.Debug|x64.ActiveCfg = Debug|x64
{244E9C8F-2C20-4E79-882C-CF57043146A0}.Debug|x64.Build.0 = Debug|x64
{244E9C8F-2C20-4E79-882C-CF57043146A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{244E9C8F-2C20-4E79-882C-CF57043146A0}.Release|Any CPU.Build.0 = Release|Any CPU
{244E9C8F-2C20-4E79-882C-CF57043146A0}.Release|x64.ActiveCfg = Release|x64
{244E9C8F-2C20-4E79-882C-CF57043146A0}.Release|x64.Build.0 = Release|x64
{B1064153-2065-4F28-BD20-409DAF3FEB21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1064153-2065-4F28-BD20-409DAF3FEB21}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1064153-2065-4F28-BD20-409DAF3FEB21}.Debug|x64.ActiveCfg = Debug|x64
{B1064153-2065-4F28-BD20-409DAF3FEB21}.Debug|x64.Build.0 = Debug|x64
{B1064153-2065-4F28-BD20-409DAF3FEB21}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1064153-2065-4F28-BD20-409DAF3FEB21}.Release|Any CPU.Build.0 = Release|Any CPU
{B1064153-2065-4F28-BD20-409DAF3FEB21}.Release|x64.ActiveCfg = Release|x64
{B1064153-2065-4F28-BD20-409DAF3FEB21}.Release|x64.Build.0 = Release|x64
{AC67661C-671A-44FD-AD35-8309399DAA00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AC67661C-671A-44FD-AD35-8309399DAA00}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AC67661C-671A-44FD-AD35-8309399DAA00}.Debug|x64.ActiveCfg = Debug|x64
{AC67661C-671A-44FD-AD35-8309399DAA00}.Debug|x64.Build.0 = Debug|x64
{AC67661C-671A-44FD-AD35-8309399DAA00}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AC67661C-671A-44FD-AD35-8309399DAA00}.Release|Any CPU.Build.0 = Release|Any CPU
{AC67661C-671A-44FD-AD35-8309399DAA00}.Release|x64.ActiveCfg = Release|x64
{AC67661C-671A-44FD-AD35-8309399DAA00}.Release|x64.Build.0 = Release|x64
{8DAD0E0C-7D08-4456-8B26-F81D668A9C2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8DAD0E0C-7D08-4456-8B26-F81D668A9C2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8DAD0E0C-7D08-4456-8B26-F81D668A9C2D}.Debug|x64.ActiveCfg = Debug|x64
{8DAD0E0C-7D08-4456-8B26-F81D668A9C2D}.Debug|x64.Build.0 = Debug|x64
{8DAD0E0C-7D08-4456-8B26-F81D668A9C2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8DAD0E0C-7D08-4456-8B26-F81D668A9C2D}.Release|Any CPU.Build.0 = Release|Any CPU
{8DAD0E0C-7D08-4456-8B26-F81D668A9C2D}.Release|x64.ActiveCfg = Release|x64
{8DAD0E0C-7D08-4456-8B26-F81D668A9C2D}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
8 changes: 6 additions & 2 deletions DisplayProfileManager/DisplayProfileManager.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Library</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<SelfContained>false</SelfContained>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Platforms>AnyCPU;x64</Platforms>
<DebugType>embedded</DebugType>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion UDPServerManager/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
//ApplicationConfiguration.Initialize();
Application.Run(new UDPServerManagerForm());
}
}
Expand Down
8 changes: 6 additions & 2 deletions UDPServerManager/UDPServerManager.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>Library</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<SelfContained>false</SelfContained>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>AnyCPU;x64</Platforms>
<DebugType>embedded</DebugType>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 106ad29

Please sign in to comment.