From fad49e3e19b6561e844cc570dabec8c20b24d94a Mon Sep 17 00:00:00 2001 From: Cory Bennett <32466081+Qonfused@users.noreply.github.com> Date: Sat, 16 Dec 2023 04:44:10 -0600 Subject: [PATCH] [MTGOSDK] Explicitly enumerate MTGO dependencies Avoids importing unnecessary reference assemblies during build. --- MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.props | 2 +- MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.targets | 10 +----- MTGOSDK.Ref/MTGOSDK.Ref.csproj | 14 +-------- MTGOSDK/MTGOSDK.csproj | 31 ++++++++++++------- 4 files changed, 23 insertions(+), 34 deletions(-) diff --git a/MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.props b/MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.props index cc0d1b20..85705c92 100644 --- a/MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.props +++ b/MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.props @@ -14,4 +14,4 @@ <_MTGOSDK_Refs>$(SolutionDir)dist\$(Configuration)\Reference\MTGO - + \ No newline at end of file diff --git a/MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.targets b/MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.targets index 8add625e..691f25bd 100644 --- a/MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.targets +++ b/MTGOSDK.MSBuild/build/MTGOSDK.MSBuild.targets @@ -67,14 +67,6 @@ Importance="high" /> - - - - $(ReferencePath);$(_MTGOSDK_Refs) - - + \ No newline at end of file diff --git a/MTGOSDK.Ref/MTGOSDK.Ref.csproj b/MTGOSDK.Ref/MTGOSDK.Ref.csproj index f71e7a91..e7830346 100644 --- a/MTGOSDK.Ref/MTGOSDK.Ref.csproj +++ b/MTGOSDK.Ref/MTGOSDK.Ref.csproj @@ -16,18 +16,6 @@ - - - - - - + \ No newline at end of file diff --git a/MTGOSDK/MTGOSDK.csproj b/MTGOSDK/MTGOSDK.csproj index 1f8fd74c..467704dc 100644 --- a/MTGOSDK/MTGOSDK.csproj +++ b/MTGOSDK/MTGOSDK.csproj @@ -5,18 +5,18 @@ Preview enable enable - - CS8597; - CS8600; - CS8602; - CS8603; - CS8604; - CS8625; - IDE0065; - + + $(NoWarn);CS8597;CS8600;CS8602;CS8603;CS8604;CS8625;IDE0065; + true + + + ..\publish\ + embedded + + @@ -29,6 +29,9 @@ import the MTGOSDK.MSBuild.props file before referencing the project. --> + + $(_MTGOSDK_Refs)\3.4.*.* + @@ -37,10 +40,16 @@ Note that the '_MTGOSDK_Refs' path does not reference the updated version subpath as it is only evaluated after building the MTGOSDK.Ref project. --> - + + + + + + + - + \ No newline at end of file