dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.64k stars 25.28k forks source link

Dotnet watch in referenced projects. #20711

Open tibold opened 3 years ago

tibold commented 3 years ago

Custom watch documentation does not work for referenced projects.

If you use relative path or glob patterns, dotnet watch will end up looking for those files relative to it's own working directory.

A quick solution is to add extra files as:

  <ItemGroup>
    <Watch Include="$(MSBuildThisFileDirectory)**\*.scss" Exclude="node_modules\**" />
  </ItemGroup>

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Rick-Anderson commented 3 years ago

@pranavkm should I add this to the article?

adityamandaleeka commented 2 years ago

@mkArtakMSFT Can you help reroute this to the correct owners?

mkArtakMSFT commented 9 months ago

@tmat any recommendation about whether the suggestion should be included in the documenation or not?