[英]Visual Studio 2019 not Recognizing new Files Pulled from GitHub
I am working in a team with a project where GitHub is used.我在一个使用 GitHub 的项目的团队中工作。 The project type is Google Gloud Project MVC5 .NET Framework 4.5.2.项目类型为 Google Gloud Project MVC5 .NET Framework 4.5.2。
When new changes are pulled down from GitHub, the new files are not detected as the correct filetype, resulting in the Visual Studio code validation being completely abscent when editing the new files.当从 GitHub 中提取新更改时,新文件不会被检测为正确的文件类型,从而导致在编辑新文件时完全没有 Visual Studio 代码验证。
As seen in the picture, the issue concerns .cshtml
files with Razor code but also .cs
files.如图所示,该问题涉及带有 Razor 代码的.cshtml
文件以及.cs
文件。
As Guru Stron suggested, the old .csproj
was not committed (The project was made in VS17 but we are now all using VS19.正如 Guru Stron 所建议的那样,旧的.csproj
没有提交(该项目是在 VS17 中制作的,但我们现在都在使用 VS19。
The issue was resolved by commiting the .sln
file and the .csproj
file from the instance where the most recent changes had been created.该问题已通过从已创建最新更改的实例提交.sln
文件和.csproj
文件得到解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.