File tree Expand file tree Collapse file tree 6 files changed +16
-10
lines changed
WebAssembly.Authentication/src
Middleware/NodeServices/src Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 56
56
57
57
<Import Project =" CSharp.ReferenceAssembly.props" Condition =" '$(IsReferenceAssemblyProject)' == 'true'" />
58
58
59
+ <!-- Properties to control how we handle warnings when using the tasks provided by the Yarn MSBuild SDK -->
60
+ <PropertyGroup >
61
+ <IgnoreYarnWarnings >false</IgnoreYarnWarnings >
62
+ <IgnoreYarnWarnings Condition =" '$(ContinuousIntegrationBuild)' == 'true'" >true</IgnoreYarnWarnings >
63
+ </PropertyGroup >
64
+
59
65
</Project >
Original file line number Diff line number Diff line change 42
42
<Target Name =" Restore" >
43
43
<Telemetry EventName =" NETCORE_ENGINEERING_TELEMETRY" EventData =" Category=Restore" />
44
44
<Message Importance =" High" Text =" Running yarn install on $(MSBuildProjectFullPath)" />
45
- <Yarn Command =" install --mutex network $(InstallArgs)" StandardOutputImportance =" High" StandardErrorImportance =" High" />
45
+ <Yarn Command =" install --mutex network $(InstallArgs)" StandardOutputImportance =" High" StandardErrorImportance =" High" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
46
46
</Target >
47
47
48
48
<Target Name =" PrepareForBuild" >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.Razor" >
1
+ <Project Sdk =" Microsoft.NET.Sdk.Razor" >
2
2
3
3
<Sdk Name =" Yarn.MSBuild" />
4
4
58
58
</Target >
59
59
60
60
<Target Name =" CompileInterop" Condition =" '$(BuildNodeJS)' != 'false' AND '$(DesignTimeBuild)' != 'true'" Inputs =" $(InteropCompilationCacheFile)" Outputs =" @(YarnOutputs)" >
61
- <Yarn Command =" install --mutex network" WorkingDirectory =" $(YarnWorkingDir)" />
62
- <Yarn Command =" run build:release" WorkingDirectory =" $(YarnWorkingDir)" Condition =" '$(Configuration)' == 'Release'" />
63
- <Yarn Command =" run build:debug" WorkingDirectory =" $(YarnWorkingDir)" Condition =" '$(Configuration)' == 'Debug'" />
61
+ <Yarn Command =" install --mutex network" WorkingDirectory =" $(YarnWorkingDir)" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
62
+ <Yarn Command =" run build:release" WorkingDirectory =" $(YarnWorkingDir)" Condition =" '$(Configuration)' == 'Release'" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
63
+ <Yarn Command =" run build:debug" WorkingDirectory =" $(YarnWorkingDir)" Condition =" '$(Configuration)' == 'Debug'" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
64
64
65
65
<ItemGroup >
66
66
<_InteropBuildOutput Include =" $(YarnWorkingDir)dist\$(Configuration)\**" Exclude =" $(YarnWorkingDir)dist\.gitignore" />
Original file line number Diff line number Diff line change 59
59
</Target >
60
60
61
61
<Target Name =" CompileInterop" Condition =" '$(BuildNodeJS)' != 'false' AND '$(DesignTimeBuild)' != 'true'" Inputs =" $(InteropCompilationCacheFile)" Outputs =" @(YarnOutputs)" >
62
- <Yarn Command =" install --mutex network" WorkingDirectory =" $(YarnWorkingDir)" />
63
- <Yarn Command =" run build:release" WorkingDirectory =" $(YarnWorkingDir)" Condition =" '$(Configuration)' == 'Release'" />
64
- <Yarn Command =" run build:debug" WorkingDirectory =" $(YarnWorkingDir)" Condition =" '$(Configuration)' == 'Debug'" />
62
+ <Yarn Command =" install --mutex network" WorkingDirectory =" $(YarnWorkingDir)" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
63
+ <Yarn Command =" run build:release" WorkingDirectory =" $(YarnWorkingDir)" Condition =" '$(Configuration)' == 'Release'" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
64
+ <Yarn Command =" run build:debug" WorkingDirectory =" $(YarnWorkingDir)" Condition =" '$(Configuration)' == 'Debug'" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
65
65
66
66
<ItemGroup >
67
67
<_InteropBuildOutput Include =" $(YarnWorkingDir)dist\$(Configuration)\**" Exclude =" $(YarnWorkingDir)dist\.gitignore" />
Original file line number Diff line number Diff line change 21
21
22
22
<Target Name =" YarnInstall" >
23
23
<Message Text =" Running yarn install on $(MSBuildProjectFile)" Importance =" High" />
24
- <Yarn Command =" install --mutex network" />
24
+ <Yarn Command =" install --mutex network" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
25
25
</Target >
26
26
27
27
<Target Name =" PrepublishScript" DependsOnTargets =" YarnInstall" BeforeTargets =" PrepareForPublish" Condition =" '$(IsCrossTargetingBuild)' != 'true' " >
Original file line number Diff line number Diff line change 20
20
Importance =" High"
21
21
Text =" Prerequisites were not enforced at build time. Running Yarn or the E2E tests might fail as a result. Check /src/Shared/E2ETesting/Readme.md for instructions." />
22
22
23
- <Yarn Command =" install --mutex network" Condition =" '$(EnforceE2ETestPrerequisites)' == 'true'" />
23
+ <Yarn Command =" install --mutex network" Condition =" '$(EnforceE2ETestPrerequisites)' == 'true'" IgnoreStandardErrorWarningFormat = " $(IgnoreYarnWarnings) " />
24
24
</Target >
25
25
26
26
<Target
You can’t perform that action at this time.
0 commit comments