blob: 0db68ee60e928e5b7aa617c3f63aa4589ed463af [file] [log] [blame]
Constantin Zieschefa612082020-04-03 09:54:56 +02001<Project Sdk="Microsoft.NET.Sdk">
2 <PropertyGroup>
3 <TargetFramework>netcoreapp3.1</TargetFramework>
4 <OutputType>Library</OutputType>
5 <Configurations>Debug;Release</Configurations>
6 <Authors>Constantin Ziesche</Authors>
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +02007 <Copyright>Copyright 2021 - Robert Bosch GmbH</Copyright>
Constantin Zieschefa612082020-04-03 09:54:56 +02008 <PackageProjectUrl>https://wiki.eclipse.org/BaSyx</PackageProjectUrl>
9 <RepositoryUrl>https://git.eclipse.org/r/plugins/gitiles/basyx/basyx/+/master/sdks/csnet/</RepositoryUrl>
10 <Description>The official BaSyx Components Common Library</Description>
11 <Company>Robert Bosch GmbH</Company>
12 <PackageTags>BaSys BaSyx Components Common</PackageTags>
13 <PackageLicenseExpression>EPL-2.0</PackageLicenseExpression>
14 <PackageIcon>basyxlogo.png</PackageIcon>
15 <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
Constantin Ziesche0399d412020-09-24 14:31:15 +020016 <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
Constantin Zieschefa612082020-04-03 09:54:56 +020017 </PropertyGroup>
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020018
Constantin Ziesche0399d412020-09-24 14:31:15 +020019 <ItemGroup>
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020020 <PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
21 <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.14" />
22 <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
23 <PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="5.0.5" />
24 <PackageReference Include="NLog" Version="4.7.9" />
25 <PackageReference Include="NLog.Web.AspNetCore" Version="4.12.0" />
Constantin Ziesche0399d412020-09-24 14:31:15 +020026 </ItemGroup>
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020027
Constantin Ziesche0399d412020-09-24 14:31:15 +020028 <ItemGroup>
Constantin Ziesche8cb6a292021-06-23 00:48:17 +020029 <ProjectReference Include="..\..\basyx-core\BaSyx.API\BaSyx.API.csproj" />
30 <ProjectReference Include="..\..\basyx-core\BaSyx.Utils.DependencyInjection\BaSyx.Utils.DependencyInjection.csproj" />
31 <ProjectReference Include="..\..\basyx-core\BaSyx.Utils\BaSyx.Utils.csproj" />
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020032 <ProjectReference Include="..\BaSyx.Components.Common.Abstractions\BaSyx.Components.Common.Abstractions.csproj" />
Constantin Ziesche0399d412020-09-24 14:31:15 +020033 </ItemGroup>
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020034
Constantin Ziesche8cb6a292021-06-23 00:48:17 +020035 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
36 <DebugType>full</DebugType>
37 <DebugSymbols>true</DebugSymbols>
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020038 </PropertyGroup>
39
Constantin Ziesche0399d412020-09-24 14:31:15 +020040 <ItemGroup>
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020041 <None Include="..\..\resources\basyxlogo.png">
42 <Pack>True</Pack>
43 <PackagePath></PackagePath>
44 </None>
45 <EmbeddedResource Include="..\..\resources\Nlog.config">
Constantin Ziesche0399d412020-09-24 14:31:15 +020046 <PackagePath>contentFiles\any\$(TargetFramework)\</PackagePath>
47 <CopyToOutputDirectory>Never</CopyToOutputDirectory>
48 <ExcludeFromSingleFile>true</ExcludeFromSingleFile>
49 <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
50 <PackageFlatten>true</PackageFlatten>
51 <PackageCopyToOutput>true</PackageCopyToOutput>
52 <Pack>true</Pack>
53 </EmbeddedResource>
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020054 <EmbeddedResource Include="..\..\resources\ServerSettings.xml">
55 <PackagePath>contentFiles\any\$(TargetFramework)\</PackagePath>
56 <CopyToOutputDirectory>Never</CopyToOutputDirectory>
57 <ExcludeFromSingleFile>true</ExcludeFromSingleFile>
58 <PackageFlatten>true</PackageFlatten>
59 <PackageCopyToOutput>true</PackageCopyToOutput>
60 <Pack>true</Pack>
61 </EmbeddedResource>
Constantin Ziesche0399d412020-09-24 14:31:15 +020062 </ItemGroup>
Constantin Zieschefa612082020-04-03 09:54:56 +020063
Constantin Ziesche8ef04aa2021-05-03 15:31:29 +020064 <Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
65 <Exec Command="IF EXIST %25BASYX_REPO%25 ( dotnet pack &quot;$(ProjectPath)&quot; -c Release --no-build --include-source --include-symbols --output &quot;%25BASYX_REPO%25&quot; ) ELSE ( ECHO BASYX_REPO Environment Variable not found)" />
Constantin Zieschefa612082020-04-03 09:54:56 +020066 </Target>
67
68</Project>