mirror of
https://github.com/greenshot/greenshot.git
synced 2025-01-08 23:03:03 -08:00
123 lines
5.7 KiB
XML
123 lines
5.7 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<Copyright>Copyright © Greenshot 2004-2021</Copyright>
|
|
<Authors>Greenshot</Authors>
|
|
<PackageIconUrl>https://getgreenshot.org/favicon.ico</PackageIconUrl>
|
|
<RepositoryUrl>https://github.com/greenshot/greenshot</RepositoryUrl>
|
|
<RepositoryType>git</RepositoryType>
|
|
<PackageProjectUrl>https://github.com/greenshot/greenshot</PackageProjectUrl>
|
|
<PackageLicenseUrl>https://www.gnu.org/licenses/gpl.html</PackageLicenseUrl>
|
|
<PackageLicenseExpression>GPL</PackageLicenseExpression>
|
|
<LangVersion>9</LangVersion>
|
|
<UseWPF>true</UseWPF>
|
|
<UseWindowsForms>true</UseWindowsForms>
|
|
<RuntimeIdentifiers>win10-x64;win10-x86;win-x64;win-x86</RuntimeIdentifiers>
|
|
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
|
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
|
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
<TargetFramework>net472</TargetFramework>
|
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
|
<Deterministic>true</Deterministic>
|
|
</PropertyGroup>
|
|
|
|
<!-- ILLinker and single file settings -->
|
|
<ItemGroup Condition="$(MSBuildProjectName) == 'Greenshot'">
|
|
<TrimmerRootAssembly Include="netstandard" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup Condition="$(MSBuildProjectName) == 'Greenshot'">
|
|
<IncludeSymbolsInSingleFile>false</IncludeSymbolsInSingleFile>
|
|
<ShowLinkerSizeComparison>true</ShowLinkerSizeComparison>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' != 'Debug' And !$(MSBuildProjectName.Contains('Test')) And !$(MSBuildProjectName.Contains('Demo'))">
|
|
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
|
<IsPackable>true</IsPackable>
|
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="$(MSBuildProjectName.Contains('Tests')) Or $(MSBuildProjectName.Contains('Demo'))">
|
|
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
|
<IsPackable>false</IsPackable>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<DebugSymbols>True</DebugSymbols>
|
|
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
|
|
<DebugType>embedded</DebugType>
|
|
<Optimize>false</Optimize>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
|
<Optimize>true</Optimize>
|
|
<DebugType>embedded</DebugType>
|
|
<DebugSymbols>True</DebugSymbols>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition="!$(MSBuildProjectName.Contains('Tests')) And $(MSBuildProjectName.StartsWith('Greenshot'))">
|
|
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Tokens Include="Box_ClientId">
|
|
<ReplacementValue>$(Box_ClientId)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Box_ClientSecret">
|
|
<ReplacementValue>$(Box_ClientSecret)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="DropBox_ClientId">
|
|
<ReplacementValue>$(DropBox_ClientId)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="DropBox_ClientSecret">
|
|
<ReplacementValue>$(DropBox_ClientSecret)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Flickr_ClientId">
|
|
<ReplacementValue>$(Flickr_ClientId)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Flickr_ClientSecret">
|
|
<ReplacementValue>$(Flickr_ClientSecret)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Imgur_ClientId">
|
|
<ReplacementValue>$(Imgur_ClientId)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Imgur_ClientSecret">
|
|
<ReplacementValue>$(Imgur_ClientSecret)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Photobucket_ClientId">
|
|
<ReplacementValue>$(Photobucket_ClientId)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Photobucket_ClientSecret">
|
|
<ReplacementValue>$(Photobucket_ClientSecret)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Picasa_ClientId">
|
|
<ReplacementValue>$(Picasa_ClientId)</ReplacementValue>
|
|
</Tokens>
|
|
<Tokens Include="Picasa_ClientSecret">
|
|
<ReplacementValue>$(Picasa_ClientSecret)</ReplacementValue>
|
|
</Tokens>
|
|
</ItemGroup>
|
|
|
|
<!-- Add MSBuild.Community.Tasks to use the TemplateFile Task-->
|
|
<ItemGroup>
|
|
<PackageReference Include="MSBuildTasks" Version="1.5.0.235" GeneratePathProperty="true" DevelopmentDependency="true" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="PostBuild" BeforeTargets="PostBuildEvent" Condition="$(MSBuildProjectName.Contains('Plugin')) And !$(MSBuildProjectName.Contains('Test')) And !$(MSBuildProjectName.Contains('Demo'))">
|
|
<Exec Command="
|
|
xcopy /f /y /d "$(TargetDir)$(TargetName).*" "$(SolutionDir)$(SolutionName)\$(OutDir)"

|
|
xcopy /f /y /d "$(TargetDir)*.dll" "$(SolutionDir)$(SolutionName)\$(OutDir)"

|
|
IF EXIST "$(TargetDir)Languages" (

|
|
IF NOT EXIST "$(SolutionDir)$(SolutionName)\$(OutDir)Languages" (

|
|
mkdir "$(SolutionDir)$(SolutionName)\$(OutDir)Languages"

|
|
)

|
|
xcopy /f /y /d "$(TargetDir)Languages\*en-US.xml" "$(SolutionDir)$(SolutionName)\$(OutDir)Languages"

|
|
)" />
|
|
</Target>
|
|
</Project>
|