Skip to content
Permalink
Browse files

[Build] Converted some design-time libraries to .NET Standard 2.0

  • Loading branch information
xen2 committed May 23, 2019
1 parent 1947227 commit 4438b73c816ab77fc40660afb868f6297ef06db0
@@ -5,7 +5,6 @@
using System.Linq;
using System.Management;
using System.Text;
using System.Windows.Forms;
using Xenko.Core.Annotations;
using Xenko.Core.Extensions;

@@ -38,22 +37,6 @@ public static string BuildErrorMessage([NotNull] Exception exception, string hea
return body.ToString();
}

[NotNull]
public static string BuildErrorToClipboard([NotNull] Exception exception, string header = null)
{
var errorMessage = BuildErrorMessage(exception, header);
try
{
Clipboard.SetText(errorMessage);
}
catch (Exception e)
{
e.Ignore();
}

return errorMessage;
}

internal static void WriteMemoryInfo(StringBuilder writer)
{
// Not used yet, but we might want to include some of these info
@@ -8,7 +8,7 @@
<XenkoAssemblyProcessor>true</XenkoAssemblyProcessor>
<XenkoAssemblyProcessorOptions>--auto-module-initializer --serialization</XenkoAssemblyProcessorOptions>
<XenkoPlatformDependent>true</XenkoPlatformDependent>
<TargetFramework>$(TargetFrameworkTool)</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<XenkoBuildTags>WindowsTools</XenkoBuildTags>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\build\</SolutionDir>
<RestorePackages>true</RestorePackages>
@@ -7,7 +7,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<XenkoAssemblyProcessor>false</XenkoAssemblyProcessor>
<XenkoPlatformDependent>true</XenkoPlatformDependent>
<TargetFramework>$(TargetFrameworkTool)</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<XenkoBuildTags>WindowsTools</XenkoBuildTags>
</PropertyGroup>
<Choose>
@@ -6,7 +6,7 @@
<PropertyGroup>
<XenkoAssemblyProcessor>true</XenkoAssemblyProcessor>
<XenkoAssemblyProcessorOptions>--auto-module-initializer --serialization</XenkoAssemblyProcessorOptions>
<TargetFramework>$(TargetFrameworkTool)</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>

0 comments on commit 4438b73

Please sign in to comment.
You can’t perform that action at this time.