File tree 3 files changed +24
-6
lines changed
Mono.TextTemplating.Build.Tests
Mono.TextTemplating.Tests
3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFrameworks >net472 ;net6.0</TargetFrameworks >
3
+ <TargetFrameworks >net48 ;net6.0</TargetFrameworks >
4
4
<IsPackable >false</IsPackable >
5
5
<DefaultItemExcludes >$(DefaultItemExcludes);TestCases\**</DefaultItemExcludes >
6
6
</PropertyGroup >
19
19
Microsoft.NET.Test.Sdk brings in a version of NuGet.Frameworks that's older than the one used by MSBuild
20
20
and loads first, thereby breaking loading of MSBuild assemblies. Force-upgrade it.
21
21
-->
22
- <PackageReference Include =" NuGet.Frameworks" Version =" 6.3.1 " />
22
+ <PackageReference Include =" NuGet.Frameworks" Version =" 6.4.0 " />
23
23
<PackageReference Include =" System.Text.Json" Version =" 6.0.6" />
24
24
</ItemGroup >
25
25
Original file line number Diff line number Diff line change @@ -57,10 +57,13 @@ public async Task CSharp9Records ()
57
57
await gen . ProcessTemplateAsync ( null , template , outputName ) ;
58
58
59
59
CompilerError firstError = gen . Errors . OfType < CompilerError > ( ) . FirstOrDefault ( ) ;
60
- #if NET5_0
61
- Assert . Null ( firstError ) ;
62
- #else
60
+
61
+ // note: when running on netsdk we use the highest available csc regardless of runtime version,
62
+ // so records will always be available on our test environments
63
+ #if NETFRAMEWORK
63
64
Assert . NotNull ( firstError ) ;
65
+ #else
66
+ Assert . Null ( firstError ) ;
64
67
#endif
65
68
}
66
69
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Suppressions xmlns : xsd =" http://www.w3.org/2001/XMLSchema" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" >
3
+ <!-- fixes binary incompatibility between multitargeted versions -->
3
4
<Suppression >
4
- <!-- fixes binary incompatibility between multitargeted versions -->
5
5
<DiagnosticId >CP0006</DiagnosticId >
6
6
<Target >M:Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost.ProvideTemplatingAppDomain(System.String)</Target >
7
7
<Left >lib/netstandard2.0/Mono.TextTemplating.dll</Left >
8
8
<Right >lib/netstandard2.0/Mono.TextTemplating.dll</Right >
9
9
<IsBaselineSuppression >true</IsBaselineSuppression >
10
10
</Suppression >
11
+ <!-- VST4 compat, should not have been public, unlikely to impact users -->
12
+ <Suppression >
13
+ <DiagnosticId >CP0019</DiagnosticId >
14
+ <Target >M:Microsoft.VisualStudio.TextTemplating.DirectiveProcessorException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</Target >
15
+ <Left >lib/net472/Mono.TextTemplating.dll</Left >
16
+ <Right >lib/net472/Mono.TextTemplating.dll</Right >
17
+ <IsBaselineSuppression >true</IsBaselineSuppression >
18
+ </Suppression >
19
+ <Suppression >
20
+ <DiagnosticId >CP0019</DiagnosticId >
21
+ <Target >M:Microsoft.VisualStudio.TextTemplating.DirectiveProcessorException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</Target >
22
+ <Left >lib/netstandard2.0/Mono.TextTemplating.dll</Left >
23
+ <Right >lib/netstandard2.0/Mono.TextTemplating.dll</Right >
24
+ <IsBaselineSuppression >true</IsBaselineSuppression >
25
+ </Suppression >
11
26
</Suppressions >
You can’t perform that action at this time.
0 commit comments