Ajout des <TargetFrameworks> dans tous les .csproj
continuous-integration/drone/push Build is failing Details

pull/32/head
Nicolas BLONDEAU 2 years ago
parent f6bd67cb08
commit faa8795df1

@ -1,7 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net7.0-android</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('ios'))">$(TargetFrameworks);net7.0-ios</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('maccatalyst'))">$(TargetFrameworks);net7.0-maccatalyst</TargetFrameworks>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

@ -1,6 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0-android</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('ios'))">$(TargetFrameworks);net7.0-ios</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('maccatalyst'))">$(TargetFrameworks);net7.0-maccatalyst</TargetFrameworks>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

@ -12,7 +12,7 @@ namespace Modèle
/// </summary>
public class MonsterBase : IRechercheMonstre
{
private List<Monstre> monsters;
private List<Monstre> monsters = null!;
public List<Monstre> ListMonsters
{
get

@ -9,7 +9,7 @@ public class Monstre
public string Name { get; set; }
public string Description { get; set; } = string.Empty;
private List<string> characteristic;
private List<string> characteristic = null!;
public List<string> CharacteristicsList
{
get {
@ -20,7 +20,7 @@ public class Monstre
}
}
private List<string> appearance;
private List<string> appearance = null!;
public List<string> AppearanceList
{
get

Loading…
Cancel
Save