I am working on Asp.Net Mvc project with .Net Core 2.2. I can not run the last modified source code from command line/powershell. I tried manually calling dotnet clean
and dotnet build
before dotnet run
but did not work. I can only run the last modified source code with cli if I run/debug my project within Visual Studio 2019 before.
How can i solve this problem?
I am using Windows 10. I have both SDK versions 3.1 and 2.2 installed but I declare the version by
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
...
</PropertyGroup>
in my .csproj file and in the build path the target version is correct.