Професионална програма
Loading...
PetarVasilev0903 avatar PetarVasilev0903 0 Точки

Проблеми с предаване на домашна в 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
Тагове:
0
C# Advanced 12/06/2020 17:16:16
nickwork avatar nickwork 657 Точки

Пусни тук зип файла да го погледна

0
PetarVasilev0903 avatar PetarVasilev0903 0 Точки

http://www.mediafire.com/file/x7yphwqvuafvbzy/DefiningClasses.zip/file

0
12/06/2020 18:55:02
nickwork avatar nickwork 657 Точки

Отвори този файл  DefiningClasses.csproj и изтрий всичко от него, после копирай този код в същият файл.

 

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

</Project>
 

0
PetarVasilev0903 avatar PetarVasilev0903 0 Точки

Мерси, а какво мога да направя за да не ми се налага да редактирам .csproj за всеки нов проект?

0