You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packaging/build/Microsoft.NET.Build.Containers.targets
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,13 @@
23
23
<ErrorCondition="'$(_IsSDKContainerAllowedVersion)' != 'true'"Code="CONTAINER002"Text="The current .NET SDK ($(NETCoreSdkVersion)) doesn't support containerization. Please use version 7.0.100 or higher to enable containerization." />
24
24
</Target>
25
25
26
+
<TargetName="_ContainerVerifyRuntime"
27
+
Condition="'$(WebPublishMethod)' == 'Container' or '$(PublishProfile)' == 'DefaultContainer'"
<ErrorCondition="'$(RuntimeIdentifier)' != 'linux-x64'"Code="CONTAINER006"Text="The Microsoft.NET.Build.Containers package does not (yet) support publishing for $([MSBuild]::ValueOrDefault('$(RuntimeIdentifier)', 'portable or no-RuntimeIdentifier-defined scenarios')). Please specify a runtime of "linux-x64"" />
0 commit comments