Skip to content

Commit

Permalink
Set NativeLib=Shared for classlib by default (#70879)
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Jun 24, 2022
1 parent 6321133 commit b869f40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
@@ -1,6 +1,6 @@
<!--
***********************************************************************************************
Microsoft.NETCore.Native.Unix.props
Microsoft.NETCore.Native.Unix.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
Expand Down
@@ -1,6 +1,6 @@
<!--
***********************************************************************************************
Microsoft.NETCore.Native.Windows.props
Microsoft.NETCore.Native.Windows.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
Expand Down
Expand Up @@ -16,6 +16,7 @@ The .NET Foundation licenses this file to you under the MIT license.

<!-- Set defaults for unspecified properties -->
<PropertyGroup>
<NativeLib Condition="'$(OutputType)' == 'Library' and '$(NativeLib)' == ''">Shared</NativeLib>
<NativeIntermediateOutputPath Condition="'$(NativeIntermediateOutputPath)' == ''">$(IntermediateOutputPath)native\</NativeIntermediateOutputPath>
<NativeOutputPath Condition="'$(NativeOutputPath)' == ''">$(OutputPath)native\</NativeOutputPath>
<NativeCompilationDuringPublish Condition="'$(NativeCompilationDuringPublish)' == ''">true</NativeCompilationDuringPublish>
Expand Down Expand Up @@ -274,8 +275,8 @@ The .NET Foundation licenses this file to you under the MIT license.
<Touch Condition="$([MSBuild]::VersionLessThan('$(NETCoreSdkVersion)', '7.0.0'))" Files="$(_LinkSemaphore)" AlwaysCreate="true" />
</Target>

<Import Project="$(MSBuildThisFileDirectory)Microsoft.NETCore.Native.Windows.props" Condition="'$(TargetOS)' == 'windows'" />
<Import Project="$(MSBuildThisFileDirectory)Microsoft.NETCore.Native.Unix.props" Condition="'$(TargetOS)' != 'windows'" />
<Import Project="$(MSBuildThisFileDirectory)Microsoft.NETCore.Native.Windows.targets" Condition="'$(TargetOS)' == 'windows'" />
<Import Project="$(MSBuildThisFileDirectory)Microsoft.NETCore.Native.Unix.targets" Condition="'$(TargetOS)' != 'windows'" />

<Target Name="MultiFileCopyNative"
Inputs="@(NativeObjects)"
Expand Down

0 comments on commit b869f40

Please sign in to comment.