diff --git a/dotnet/AxInterop.MSTSCLib/AxInterop.MSTSCLib.csproj b/dotnet/AxInterop.MSTSCLib/AxInterop.MSTSCLib.csproj index 5df0991..fc1d4e7 100644 --- a/dotnet/AxInterop.MSTSCLib/AxInterop.MSTSCLib.csproj +++ b/dotnet/AxInterop.MSTSCLib/AxInterop.MSTSCLib.csproj @@ -1,27 +1,13 @@  + AxInterop.MSTSCLib Library - Win32;x64;ARM64 - AnyCPU - MSIL - net48 true - disable - false + disable + False $(CMakeOutputPath) - false - - - - False - Full - - - - True - None diff --git a/dotnet/AxInterop.MSTSCLib/RdpAxHost.cs b/dotnet/AxInterop.MSTSCLib/RdpAxHost.cs index b39fcaf..401ee7d 100644 --- a/dotnet/AxInterop.MSTSCLib/RdpAxHost.cs +++ b/dotnet/AxInterop.MSTSCLib/RdpAxHost.cs @@ -113,7 +113,7 @@ public IntPtr Module public class AxHostEx : System.Windows.Forms.AxHost { public string axName = "mstsc"; - public string rdpExDll = null; + public string rdpExDll = string.Empty; private static object loadLock = new object(); public static string RdpGetAxDllPath(string axName) @@ -147,7 +147,7 @@ public static string RdpGetAxDllPath(string axName) public static object RdpGetClassObject(Guid clsid, string axName, string rdpExDll) { - object obj = null; + object? obj = null; lock (loadLock) { diff --git a/dotnet/CMakeLists.txt b/dotnet/CMakeLists.txt index 0543d0a..27cf1b7 100644 --- a/dotnet/CMakeLists.txt +++ b/dotnet/CMakeLists.txt @@ -2,7 +2,7 @@ include_external_msproject(AxInterop.MSTSCLib "${CMAKE_CURRENT_SOURCE_DIR}/AxInterop.MSTSCLib/AxInterop.MSTSCLib.csproj") - include_external_msproject(Devolutions.MsRdpEx +include_external_msproject(Devolutions.MsRdpEx "${CMAKE_CURRENT_SOURCE_DIR}/Devolutions.MsRdpEx/Devolutions.MsRdpEx.csproj") include_external_msproject(MsRdpEx_App diff --git a/dotnet/Devolutions.MsRdpEx/Bindings.cs b/dotnet/Devolutions.MsRdpEx/Bindings.cs index 9cf4b9e..8e4aa82 100644 --- a/dotnet/Devolutions.MsRdpEx/Bindings.cs +++ b/dotnet/Devolutions.MsRdpEx/Bindings.cs @@ -153,14 +153,14 @@ public static class Bindings public static IMsRdpExCoreApi GetCoreApi() { - object instance = null; + object? instance = null; MsRdpEx_CreateInstance(ref IID_IMsRdpExCoreApi, out instance); return (IMsRdpExCoreApi)instance; } public static IMsRdpExProcess CreateProcess() { - object instance = null; + object? instance = null; MsRdpEx_CreateInstance(ref IID_IMsRdpExProcess, out instance); IMsRdpExProcess process = (IMsRdpExProcess)instance; return process; @@ -168,7 +168,7 @@ public static IMsRdpExProcess CreateProcess() public static IMsRdpExProcess StartProcess(string[] args, string appName, string axName) { - object instance = null; + object? instance = null; MsRdpEx_CreateInstance(ref IID_IMsRdpExProcess, out instance); IMsRdpExProcess process = (IMsRdpExProcess) instance; diff --git a/dotnet/Devolutions.MsRdpEx/Devolutions.MsRdpEx.csproj b/dotnet/Devolutions.MsRdpEx/Devolutions.MsRdpEx.csproj index 3cd012d..916134e 100644 --- a/dotnet/Devolutions.MsRdpEx/Devolutions.MsRdpEx.csproj +++ b/dotnet/Devolutions.MsRdpEx/Devolutions.MsRdpEx.csproj @@ -1,4 +1,5 @@  + Devolutions.MsRdpEx @@ -8,29 +9,11 @@ Devolutions Microsoft RDP Extensions Library - Win32;x64;ARM64 - AnyCPU - MSIL - netstandard2.0 - true - disable - 8 - enable - true + True $(CMakeOutputPath) - false - true - True - - - - False - Full - - - - True - None + enable + True + False @@ -46,9 +29,24 @@ + + + + + + + + + + + + + + + - - diff --git a/dotnet/Directory.Build.props.in b/dotnet/Directory.Build.props.in index 7999d94..0ad4856 100644 --- a/dotnet/Directory.Build.props.in +++ b/dotnet/Directory.Build.props.in @@ -2,6 +2,6 @@ @CMAKE_SOURCE_DIR@ @CMAKE_BINARY_DIR@ - $(CMakeBinaryDir)\$(Configuration) + $(CMakeBinaryDir)/$(Configuration) \ No newline at end of file diff --git a/dotnet/MsRdpEx_App/MainDlg.cs b/dotnet/MsRdpEx_App/MainDlg.cs index 7a7898d..cd823c6 100644 --- a/dotnet/MsRdpEx_App/MainDlg.cs +++ b/dotnet/MsRdpEx_App/MainDlg.cs @@ -402,7 +402,7 @@ private void btnConnect_Click(object sender, EventArgs e) args.Add(this.rdpFileName); } - string arguments = string.Join(' ', args.ToArray()); + string arguments = string.Join(" ", args.ToArray()); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = executableFileName; diff --git a/dotnet/MsRdpEx_App/MsRdpEx_App.csproj b/dotnet/MsRdpEx_App/MsRdpEx_App.csproj index a644cde..922dc09 100644 --- a/dotnet/MsRdpEx_App/MsRdpEx_App.csproj +++ b/dotnet/MsRdpEx_App/MsRdpEx_App.csproj @@ -3,12 +3,12 @@ WinExe Win32;x64;ARM64 - net6.0-windows - true + net48;net8.0-windows + True disable - true + True $(CMakeOutputPath) - false + True @@ -19,14 +19,6 @@ 1.0.0.0 - - False - - - - True - - diff --git a/dotnet/common.build.pre.props b/dotnet/common.build.pre.props new file mode 100644 index 0000000..83edaae --- /dev/null +++ b/dotnet/common.build.pre.props @@ -0,0 +1,24 @@ + + + + + net48;net8.0-windows + True + disable + 11 + Win32;x64;ARM64 + AnyCPU + MSIL + True + + + + False + Full + + + + True + None + + \ No newline at end of file