Проблеми с предаване на домашна в Judge
Здравейте, получавам следното като предам .zip за Defining Classes - Exercise
Compilation result:
Compiled file is missing. Compiler output: Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. Determining projects to restore... Restored ...\NUnitLiteConsoleApp.csproj (in 926 ms). C:\Program Files\dotnet\sdk\3.1.300\Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.8 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [...\DefiningClasses.csproj] Build FAILED. C:\Program Files\dotnet\sdk\3.1.300\Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.8 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [...\DefiningClasses.csproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:02.63
http://www.mediafire.com/file/x7yphwqvuafvbzy/DefiningClasses.zip/file
Отвори този файл DefiningClasses.csproj и изтрий всичко от него, после копирай този код в същият файл.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>
Мерси, а какво мога да направя за да не ми се налага да редактирам .csproj за всеки нов проект?