summaryrefslogtreecommitdiff
path: root/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/Workarounds.props
diff options
context:
space:
mode:
Diffstat (limited to '.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/Workarounds.props')
-rwxr-xr-x.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/Workarounds.props31
1 files changed, 31 insertions, 0 deletions
diff --git a/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/Workarounds.props b/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/Workarounds.props
new file mode 100755
index 0000000000..08b750e449
--- /dev/null
+++ b/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/Workarounds.props
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
+<Project>
+
+ <!--
+ Determine whether the project is WPF temp project.
+ Since .NET Framework 4.7.2 WPF temp project name ends with _wpftmp suffix and keeps the language specific extension (e.g. csproj).
+ -->
+ <PropertyGroup Condition="'$(IsWpfTempProject)' == ''">
+ <IsWpfTempProject>false</IsWpfTempProject>
+ <IsWpfTempProject Condition="$(MSBuildProjectName.EndsWith('_wpftmp'))">true</IsWpfTempProject>
+ </PropertyGroup>
+
+ <!--
+ WPF temp-projects do not import .props and .targets files from NuGet packages.
+ (see https://github.com/dotnet/sourcelink/issues/91).
+
+ Property _TargetAssemblyProjectName is set by GenerateTemporaryTargetAssembly task.
+
+ Disable Source Link and Xliff in WPF temp projects to avoid generating non-deterministic file names to obj dir.
+ The project name is non-deterministic and is included in the Source Link json file name and xlf directory names.
+ It's also not necessary to generate these assets.
+ -->
+ <PropertyGroup Condition="'$(IsWpfTempProject)' == 'true'">
+ <_WpfTempProjectNuGetFilePathNoExt>$(ArtifactsObjDir)$(_TargetAssemblyProjectName)\$(_TargetAssemblyProjectName)$(MSBuildProjectExtension).nuget.g</_WpfTempProjectNuGetFilePathNoExt>
+
+ <EnableSourceLink>false</EnableSourceLink>
+ <DeterministicSourcePaths>false</DeterministicSourcePaths>
+ <EnableXlfLocalization>false</EnableXlfLocalization>
+ </PropertyGroup>
+</Project>