Remove test
This commit is contained in:
parent
28e18c3058
commit
c4dde35e37
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
|
@ -277,53 +276,6 @@ namespace Microsoft.DotNet.Watcher.Tools.Tests
|
|||
);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ProjectReferences_RazorFiles()
|
||||
{
|
||||
// Arrange
|
||||
var razorSdkTargetsPath = GetType().Assembly.GetCustomAttributes<AssemblyMetadataAttribute>()
|
||||
.First(f => f.Key == "RazorSdkPath").Value;
|
||||
|
||||
_tempDir
|
||||
.SubDir("src")
|
||||
.SubDir("MyLibrary")
|
||||
.WithCSharpProject("MyLibrary", out var proj3, sdk: "Microsoft.NET.Sdk.Razor")
|
||||
.WithProperty("CustomCollectWatchItems", "$(CustomCollectWatchItems);_RazorSdkCustomCollectWatchItems")
|
||||
.WithProperty("RazorSdkCurrentVersionTargets", razorSdkTargetsPath)
|
||||
.WithTargetFrameworks("net5.0")
|
||||
.Dir()
|
||||
.WithFile("MyLibraryFile.razor")
|
||||
.WithFile("Class2.cs")
|
||||
.Up()
|
||||
.SubDir("MainApp")
|
||||
.WithCSharpProject("MainApp", out var target, sdk: "Microsoft.NET.Sdk.Razor")
|
||||
.WithProperty("CustomCollectWatchItems", "$(CustomCollectWatchItems);_RazorSdkCustomCollectWatchItems")
|
||||
.WithProperty("RazorSdkCurrentVersionTargets", razorSdkTargetsPath)
|
||||
.WithTargetFrameworks("net5.0")
|
||||
.WithProjectReference(proj3)
|
||||
.Dir()
|
||||
.WithFile("Class1.cs")
|
||||
.WithFile("Index.razor")
|
||||
.Up();
|
||||
|
||||
var fileset = await GetFileSet(target);
|
||||
|
||||
AssertEx.EqualFileList(
|
||||
_tempDir.Root,
|
||||
new[]
|
||||
{
|
||||
"src/MyLibrary/MyLibraryFile.razor",
|
||||
"src/MyLibrary/Class2.cs",
|
||||
"src/MyLibrary/MyLibrary.csproj",
|
||||
"src/MainApp/Class1.cs",
|
||||
"src/MainApp/Index.razor",
|
||||
"src/MainApp/MainApp.csproj"
|
||||
},
|
||||
fileset
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
private Task<IFileSet> GetFileSet(TemporaryCSharpProject target)
|
||||
=> GetFileSet(new MsBuildFileSetFactory(_reporter, target.Path, waitOnError: false, trace: false));
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||
|
|
@ -21,11 +21,6 @@
|
|||
<_Parameter1>DotnetPath</_Parameter1>
|
||||
<_Parameter2>$(DotNetTool)</_Parameter2>
|
||||
</AssemblyAttribute>
|
||||
|
||||
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
|
||||
<_Parameter1>RazorSdkPath</_Parameter1>
|
||||
<_Parameter2>$(RepoRoot)src\Razor\Microsoft.NET.Sdk.Razor\src\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets</_Parameter2>
|
||||
</AssemblyAttribute>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CleanTestProjects" BeforeTargets="CoreCompile">
|
||||
|
|
|
|||
Loading…
Reference in New Issue