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
Add WSL support via Product.AddWslSupport property.
When AddWslSupport is enabled, the build system now generates:
- .wsl.g.props files with WSL-formatted paths (/mnt/c/...)
- nuget.wsl.config with WSL-formatted package source paths
- Platform-specific conditional imports in Versions.g.props
Also add ContainerHostKind.Wsl enum value and corresponding build agent type.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
<Import Project=""{configurationSpecificVersionFilePath}"" Condition=""'$(DoNotLoadGeneratedVersionFiles)'!='True' AND Exists('{configurationSpecificVersionFilePath}')""/>
70
-
</Project>
71
-
",
72
-
context);
73
-
}
1
+
// Copyright (c) SharpCrafters s.r.o. See the LICENSE.md file in the root directory of this repository root for details.
<!-- Load WSL version if running under Unix/WSL -->
91
+
<Import Project=""{wslVersionFilePathInWslFormat}"" Condition=""'$(DoNotLoadGeneratedVersionFiles)'!='True' AND '$([MSBuild]::IsOSPlatform(Linux))' == 'true' AND Exists('{wslVersionFilePathInWslFormat}')""/>
92
+
<!-- Load Windows version if running under Windows -->
93
+
<Import Project=""{configurationSpecificVersionFilePath}"" Condition=""'$(DoNotLoadGeneratedVersionFiles)'!='True' AND '$([MSBuild]::IsOSPlatform(Windows))' == 'true' AND Exists('{configurationSpecificVersionFilePath}')""/>
94
+
</Project>
95
+
";
96
+
}
97
+
else
98
+
{
99
+
content=$@"
100
+
<!-- File generated by PostSharp.Engineering {VersionHelper.EngineeringVersion}, method {nameof(ConfigurationNeutralVersionFile)}.{nameof(Write)}. -->
<Import Project=""{configurationSpecificVersionFilePath}"" Condition=""'$(DoNotLoadGeneratedVersionFiles)'!='True' AND Exists('{configurationSpecificVersionFilePath}')""/>
0 commit comments