diff --git a/src/Tools/dotnet-watch/test/MsBuildFileSetFactoryTest.cs b/src/Tools/dotnet-watch/test/MsBuildFileSetFactoryTest.cs index 28f4b4121f..0d69f49d2e 100644 --- a/src/Tools/dotnet-watch/test/MsBuildFileSetFactoryTest.cs +++ b/src/Tools/dotnet-watch/test/MsBuildFileSetFactoryTest.cs @@ -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() - .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 GetFileSet(TemporaryCSharpProject target) => GetFileSet(new MsBuildFileSetFactory(_reporter, target.Path, waitOnError: false, trace: false)); diff --git a/src/Tools/dotnet-watch/test/dotnet-watch.Tests.csproj b/src/Tools/dotnet-watch/test/dotnet-watch.Tests.csproj index f36afc474f..d171daa39d 100644 --- a/src/Tools/dotnet-watch/test/dotnet-watch.Tests.csproj +++ b/src/Tools/dotnet-watch/test/dotnet-watch.Tests.csproj @@ -1,4 +1,4 @@ - + $(DefaultNetCoreTargetFramework) @@ -21,11 +21,6 @@ <_Parameter1>DotnetPath <_Parameter2>$(DotNetTool) - - - <_Parameter1>RazorSdkPath - <_Parameter2>$(RepoRoot)src\Razor\Microsoft.NET.Sdk.Razor\src\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets -