Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit 762960e

Browse files
authored
Merge pull request #66 from dhrdlicka/feature/dotnet-core-3.0
Add a .NET Core 3.0 project
2 parents 67057e0 + 37294e4 commit 762960e

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

86BoxManager.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.28010.2036
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "86BoxManager", "86boxManager\86BoxManager.csproj", "{559F81B9-D1A5-45FC-AA69-E98F3B3926BB}"
77
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "86BoxManagerCore", "86BoxManagerCore\86BoxManagerCore.csproj", "{508DDE75-0405-47E9-9876-D3DF2D7047B3}"
9+
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,14 @@ Global
2123
{559F81B9-D1A5-45FC-AA69-E98F3B3926BB}.Release|Any CPU.Build.0 = Release|x86
2224
{559F81B9-D1A5-45FC-AA69-E98F3B3926BB}.Release|x86.ActiveCfg = Release|x86
2325
{559F81B9-D1A5-45FC-AA69-E98F3B3926BB}.Release|x86.Build.0 = Release|x86
26+
{508DDE75-0405-47E9-9876-D3DF2D7047B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{508DDE75-0405-47E9-9876-D3DF2D7047B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{508DDE75-0405-47E9-9876-D3DF2D7047B3}.Debug|x86.ActiveCfg = Debug|Any CPU
29+
{508DDE75-0405-47E9-9876-D3DF2D7047B3}.Debug|x86.Build.0 = Debug|Any CPU
30+
{508DDE75-0405-47E9-9876-D3DF2D7047B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{508DDE75-0405-47E9-9876-D3DF2D7047B3}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{508DDE75-0405-47E9-9876-D3DF2D7047B3}.Release|x86.ActiveCfg = Release|Any CPU
33+
{508DDE75-0405-47E9-9876-D3DF2D7047B3}.Release|x86.Build.0 = Release|Any CPU
2434
EndGlobalSection
2535
GlobalSection(SolutionProperties) = preSolution
2636
HideSolutionNode = FALSE

86BoxManager/frmMain.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using IWshRuntimeLibrary;
1+
#if NETFRAMEWORK
2+
using IWshRuntimeLibrary;
3+
#endif
24
using Microsoft.Win32;
35
using System;
46
using System.ComponentModel;
@@ -49,6 +51,10 @@ public frmMain()
4951
InitializeComponent();
5052
LoadSettings();
5153
LoadVMs();
54+
55+
#if !NETFRAMEWORK
56+
createADesktopShortcutToolStripMenuItem.Enabled = false;
57+
#endif
5258
}
5359

5460
private void frmMain_Load(object sender, EventArgs e)
@@ -1130,6 +1136,7 @@ private void VMOpenFolder()
11301136

11311137
private void createADesktopShortcutToolStripMenuItem_Click(object sender, EventArgs e)
11321138
{
1139+
#if NETFRAMEWORK
11331140
VM vm = (VM)lstVMs.SelectedItems[0].Tag;
11341141
WshShell shell = new WshShell();
11351142
string shortcutAddress = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\" + vm.Name + ".lnk";
@@ -1141,6 +1148,7 @@ private void createADesktopShortcutToolStripMenuItem_Click(object sender, EventA
11411148
shortcut.Save();
11421149

11431150
MessageBox.Show("A desktop shortcut for this virtual machine was successfully created.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
1151+
#endif
11441152
}
11451153

11461154
//Starts/stops selected VM when enter is pressed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>netcoreapp3.0</TargetFramework>
6+
<RootNamespace>_86BoxManager</RootNamespace>
7+
<UseWindowsForms>true</UseWindowsForms>
8+
9+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
10+
<AssemblyName>86Manager</AssemblyName>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<Compile Include="..\86BoxManager\**\*.cs" />
15+
<EmbeddedResource Include="..\86BoxManager\**\*.resx" />
16+
</ItemGroup>
17+
18+
</Project>

0 commit comments

Comments
 (0)