Skip to content

Commit

Permalink
Update projects
Browse files Browse the repository at this point in the history
  • Loading branch information
AliveDevil committed Aug 13, 2021
1 parent ee78839 commit fbfea73
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 20 deletions.
4 changes: 0 additions & 4 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

<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>
Expand Down
4 changes: 3 additions & 1 deletion core/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<BasePath>$(MSBuildThisFileDirectory)</BasePath>
<ModulePath Condition=" '$(ModulePath)' == '' ">$(MSBuildThisFileDirectory)</ModulePath>
</PropertyGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.Props', $(MSBuildThisFileDirectory)../))" />

</Project>
4 changes: 3 additions & 1 deletion core/native/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<Project>

<PropertyGroup>
<ModulePath>$(MSBuildThisFileDirectory)</ModulePath>
<ModulePath Condition=" '$(ModulePath)' == '' ">$(MSBuildThisFileDirectory)</ModulePath>
</PropertyGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.Props', $(MSBuildThisFileDirectory)../))" />

</Project>
6 changes: 1 addition & 5 deletions core/src/main/csharp/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<ParentBuildProps>$([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)../', 'Directory.Build.props'))/</ParentBuildProps>
<BasePath>$([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)../', 'Directory.Build.props'))/</BasePath>
</PropertyGroup>
<Import Project="$(ParentBuildProps)Directory.Build.props" />

<Import Project="$(BasePath)native/Directory.Build.props" />

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(ParentBuildProps)../'))" />

</Project>
7 changes: 1 addition & 6 deletions core/src/test/csharp/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<ParentBuildProps>$([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)../', 'Directory.Build.props'))/</ParentBuildProps>
<BasePath>$([MSBuild]::GetDirectoryNameOfFileAbove('$(MSBuildThisFileDirectory)../', 'Directory.Build.props'))/</BasePath>
</PropertyGroup>

<Import Project="$(ParentBuildProps)Directory.Build.props" />

<Import Project="$(BasePath)native/Directory.Build.props" />

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(ParentBuildProps)../'))" />

</Project>
2 changes: 1 addition & 1 deletion windows/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
<ModulePath>$(BasePath)</ModulePath>
</PropertyGroup>

<Import Project="../Directory.Build.props" />
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.Props', $(MSBuildThisFileDirectory)../))" />

</Project>
2 changes: 1 addition & 1 deletion windows/src/main/csharp/Cyberduck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<OutputType>WinExe</OutputType>
<TargetFramework>net47</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<UseWPF>true</UseWPF>
<Platforms>x64;x86</Platforms>

<ApplicationIcon>$(CyberduckDir)cyberduck-application.ico</ApplicationIcon>
Expand Down Expand Up @@ -58,7 +59,6 @@
<Reference Include="ObjectListView">
<HintPath>$(TargetBuildDir)ObjectListView.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework" />
<Reference Include="System.Design" />
<Reference Include="System.Security" />
<Reference Include="System.ServiceModel" />
Expand Down
8 changes: 7 additions & 1 deletion windows/src/main/csharp/ch/cyberduck/ui/core/DragDropLib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,8 @@ public int Skip(int celt)

namespace System.Windows.Forms
{
using System.Drawing;

using ComIDataObject = Runtime.InteropServices.ComTypes.IDataObject;

public enum DropImageType
Expand Down Expand Up @@ -1316,6 +1318,8 @@ public static Win32Point ToWin32Point(this Point pt)

namespace System.Windows.Forms
{
using System.Drawing;

public static class DropTargetHelper
{
/// <summary>
Expand Down Expand Up @@ -1516,6 +1520,8 @@ public static void Drop(this IDropTargetHelper dropHelper, System.Windows.Forms.

namespace System.Windows.Forms
{
using System.Drawing;

/// <summary>
/// Provides helper methods for working with the Shell drag image manager.
/// </summary>
Expand Down Expand Up @@ -2136,4 +2142,4 @@ private enum DropDescriptionFlags
}
}

#endregion // SwfDragDropLib\SwfDragSourceHelper.cs
#endregion // SwfDragDropLib\SwfDragSourceHelper.cs

0 comments on commit fbfea73

Please sign in to comment.