Skip to content

Commit

Permalink
Migrate to Directory.Build.props
Browse files Browse the repository at this point in the history
  • Loading branch information
AliveDevil committed Jul 28, 2019
1 parent 4e2f5d6 commit 5a68175
Show file tree
Hide file tree
Showing 6 changed files with 154 additions and 9 deletions.
60 changes: 60 additions & 0 deletions Directory.Build.props
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2002-2019 iterate GmbH. All rights reserved.
~ https://cyberduck.io/
~
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup Label="AssemblyInfo">
<Company>iterate GmbH</Company>
<Copyright>Copyright (c) 2001-2016 David Kocher. Copyright (c) 2011–2016 Yves Langisch</Copyright>
<Description>Libre FTP, SFTP, WebDAV, S3 and OpenStack Swift browser for Mac and Windows.</Description>
<Version>7.0.2-SNAPSHOT</Version>
</PropertyGroup>

<PropertyGroup>
<CyberduckDir>$(MSBuildThisFileDirectory)</CyberduckDir>
<TargetBuildDir>$(ModulePath)target\</TargetBuildDir>

<BaseIntermediateOutputPath>$(TargetBuildDir)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<BaseOutputPath>$(TargetBuildDir)</BaseOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<OutputPath>$(BaseOutputPath)</OutputPath>

<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

<ItemDefinitionGroup>
<CyberduckReference />
</ItemDefinitionGroup>

<ItemGroup>
<IKVM Include="IKVM.OpenJDK.Beans" />
<IKVM Include="IKVM.OpenJDK.Charsets" />
<IKVM Include="IKVM.OpenJDK.Core" />
<IKVM Include="IKVM.OpenJDK.Jdbc" />
<IKVM Include="IKVM.OpenJDK.Localedata" />
<IKVM Include="IKVM.OpenJDK.Security" />
<IKVM Include="IKVM.OpenJDK.Text" />
<IKVM Include="IKVM.OpenJDK.XML.API" />
<IKVM Include="IKVM.OpenJDK.XML.Bind" />
<IKVM Include="IKVM.OpenJDK.XML.Parse" />
<IKVM Include="IKVM.OpenJDK.XML.Transform" />
<IKVM Include="IKVM.OpenJDK.XML.XPath" />
<IKVM Include="IKVM.Runtime" />
<IKVM Include="IKVM.Runtime.JNI" />

<IKVMReferences Include="@(IKVM)" HintPath="$(TargetBuildDir)ikvm\bin\%(Identity).dll" />
</ItemGroup>
</Project>
31 changes: 31 additions & 0 deletions Directory.Build.targets
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2002-2019 iterate GmbH. All rights reserved.
~ https://cyberduck.io/
~
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<CustomAfterCentralPackageVersionsTargets>$(MSBuildThisFileDirectory)MSBuildTasks.targets</CustomAfterCentralPackageVersionsTargets>
</PropertyGroup>

<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.0.41" />

<ItemGroup>
<Reference Include="@(CyberduckReference->'Cyberduck.%(Identity)')">
<HintPath>$(TargetBuildDir)%(Identity).dll</HintPath>
</Reference>
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions MSBuildTasks.targets
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2002-2019 iterate GmbH. All rights reserved.
~ https://cyberduck.io/
~
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<MSBuildCommunityTasksPath>$(PkgMSBuildTasks)\tools\</MSBuildCommunityTasksPath>
</PropertyGroup>

<Import Project="$(MSBuildCommunityTasksPath)MSBuild.Community.Tasks.Targets" />

</Project>
33 changes: 33 additions & 0 deletions Packages.props
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2002-2019 iterate GmbH. All rights reserved.
~ https://cyberduck.io/
~
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Update="ExceptionReporter " Version="2.4.2" />
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Update="Microsoft.Toolkit.Uwp.Notifications" Version="2.0.0" />
<PackageReference Update="Microsoft.Windows.SDK.Contracts" Version="10.0.17763.1000-preview" />
<PackageReference Update="NUnit.Runners" Version="2.7.0" GeneratePathProperty="true" />
<PackageReference Update="nunit" Version="2.7.0" />
<PackageReference Update="NUnitTestAdapter" Version="2.2.0" />
<PackageReference Update="ObjectListView.Official" Version="2.9.1" />
<PackageReference Update="StructureMap" Version="2.6.1" />
<PackageReference Update="WindowsAPICodePack-Core" Version="1.1.2" />
<PackageReference Update="WindowsAPICodePack-Shell" Version="1.1.1" />

<GlobalPackageReference Include="MSBuildTasks" Version="1.5.0.235" GeneratePathProperty="true" />
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions global.json
@@ -0,0 +1,5 @@
{
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "1.0.73"
}
}
9 changes: 0 additions & 9 deletions packages.config

This file was deleted.

0 comments on commit 5a68175

Please sign in to comment.