Skip to content

Commit ab19212

Browse files
committed
upgraded project to multi-target-framework
1 parent d4d1229 commit ab19212

2 files changed

Lines changed: 12 additions & 78 deletions

File tree

Lines changed: 12 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,31 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<!-- let MSBuild always follow the current file build version (avoid error MSB4126) -->
1+
<Project Sdk="Microsoft.NET.Sdk">
52
<PropertyGroup>
63
<GenerateResourceMSBuildArchitecture>CurrentArchitecture</GenerateResourceMSBuildArchitecture>
74
<GenerateResourceMSBuildRuntime>CurrentRuntime</GenerateResourceMSBuildRuntime>
5+
<Configurations>CI_CD;Debug;Release</Configurations>
86
</PropertyGroup>
97
<PropertyGroup>
10-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
11-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
12-
<ProjectGuid>{2FBE013B-7B2B-410B-9667-DFB060EBC82E}</ProjectGuid>
138
<OutputType>Exe</OutputType>
14-
<RootNamespace>CenterDevice.SampleApp</RootNamespace>
15-
<AssemblyName>CenterDevice.SampleApp</AssemblyName>
16-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
17-
<FileAlignment>512</FileAlignment>
18-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
19-
<Deterministic>true</Deterministic>
209
</PropertyGroup>
21-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
22-
<PlatformTarget>AnyCPU</PlatformTarget>
23-
<DebugSymbols>true</DebugSymbols>
24-
<DebugType>full</DebugType>
25-
<Optimize>false</Optimize>
26-
<OutputPath>bin\Debug\</OutputPath>
27-
<DefineConstants>DEBUG;TRACE</DefineConstants>
28-
<ErrorReport>prompt</ErrorReport>
29-
<WarningLevel>4</WarningLevel>
30-
</PropertyGroup>
31-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
32-
<PlatformTarget>AnyCPU</PlatformTarget>
33-
<DebugType>pdbonly</DebugType>
34-
<Optimize>true</Optimize>
35-
<OutputPath>bin\Release\</OutputPath>
36-
<DefineConstants>TRACE</DefineConstants>
37-
<ErrorReport>prompt</ErrorReport>
38-
<WarningLevel>4</WarningLevel>
10+
<PropertyGroup>
11+
<TargetFrameworks>net8.0;net48</TargetFrameworks>
12+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
13+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
14+
<AssemblyTitle>CenterDevice.SampleApp</AssemblyTitle>
15+
<Product>CenterDevice.SampleApp</Product>
16+
<Copyright>Copyright © 2020-2024 CompuMaster GmbH</Copyright>
17+
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
3918
</PropertyGroup>
4019
<ItemGroup>
41-
<Reference Include="System" />
42-
<Reference Include="System.Core" />
43-
<Reference Include="System.Web" />
44-
<Reference Include="System.Xml.Linq" />
45-
<Reference Include="System.Data.DataSetExtensions" />
46-
<Reference Include="Microsoft.CSharp" />
47-
<Reference Include="System.Data" />
48-
<Reference Include="System.Net.Http" />
49-
<Reference Include="System.Xml" />
50-
</ItemGroup>
51-
<ItemGroup>
52-
<Compile Include="Program.cs" />
53-
<Compile Include="Properties\AssemblyInfo.cs" />
54-
<Compile Include="Settings.cs" />
55-
</ItemGroup>
56-
<ItemGroup>
57-
<None Include="App.config" />
58-
</ItemGroup>
59-
<ItemGroup>
60-
<ProjectReference Include="..\CenterDevice.Rest\CenterDevice.Rest.csproj">
61-
<Project>{b707cedf-decb-4e3b-b282-79c42c0a1d94}</Project>
62-
<Name>CenterDevice.Rest</Name>
63-
</ProjectReference>
20+
<ProjectReference Include="..\CenterDevice.Rest\CenterDevice.Rest.csproj" />
6421
</ItemGroup>
6522
<ItemGroup>
6623
<PackageReference Include="CompuMaster.Scopevisio.OpenApi">
6724
<Version>2024.11.5.100</Version>
6825
</PackageReference>
26+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
6927
<PackageReference Include="RestSharp">
7028
<Version>112.1.0</Version>
7129
</PackageReference>
7230
</ItemGroup>
73-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7431
</Project>
Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
using System.Reflection;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
4-
5-
// Allgemeine Informationen über eine Assembly werden über die folgenden
6-
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
7-
// die einer Assembly zugeordnet sind.
8-
[assembly: AssemblyTitle("CenterDevice.SampleApp")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("CenterDevice.SampleApp")]
13-
[assembly: AssemblyCopyright("Copyright © 2020")]
144
[assembly: AssemblyTrademark("")]
155
[assembly: AssemblyCulture("")]
166

@@ -21,16 +11,3 @@
2111

2212
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
2313
[assembly: Guid("2fbe013b-7b2b-410b-9667-dfb060ebc82e")]
24-
25-
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
26-
//
27-
// Hauptversion
28-
// Nebenversion
29-
// Buildnummer
30-
// Revision
31-
//
32-
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
33-
// indem Sie "*" wie unten gezeigt eingeben:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)