Skip to content

Commit

Permalink
Upgrade to .NET Core 1.1 & csproj layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottRFrost committed Feb 22, 2017
1 parent a674a16 commit 60115e2
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 76 deletions.
9 changes: 3 additions & 6 deletions SimpleSFTPSyncCore.sln
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26206.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{C055C2CF-836F-4403-BE25-CF5C337961E5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{34205E5B-D31E-4F2D-8F14-85FCC72F411D}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
EndProjectSection
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SimpleSFTPSyncCore", "src\SimpleSFTPSyncCore\SimpleSFTPSyncCore.xproj", "{B01DA869-56DA-409D-BE03-38BA9A39FD9A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimpleSFTPSyncCore", "src\SimpleSFTPSyncCore\SimpleSFTPSyncCore.csproj", "{B01DA869-56DA-409D-BE03-38BA9A39FD9A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
6 changes: 0 additions & 6 deletions global.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<TargetFramework>netcoreapp1.1</TargetFramework>
<PublishDir>bin\Release\PublishOutput</PublishDir>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion src/SimpleSFTPSyncCore/SimpleSFTPSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void StartRun()
// Sync SFTP
// sftp.DownloadFile(remoteDir + syncFile.RemotePath, fileStream);

scp.Download(syncFile.RemotePath, new DirectoryInfo(localDirectory));
scp.Download(remoteDir + syncFile.RemotePath, new DirectoryInfo(localDirectory));

var endTime = DateTime.Now;

Expand Down
43 changes: 43 additions & 0 deletions src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>1.0.1</VersionPrefix>
<TargetFramework>netcoreapp1.1</TargetFramework>
<AssemblyName>SimpleSFTPSyncCore</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>SimpleSFTPSyncCore</PackageId>
<RuntimeIdentifiers>win10-x64;ubuntu.16.10-x64</RuntimeIdentifiers>
<RuntimeFrameworkVersion>1.0.3</RuntimeFrameworkVersion>
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<Version>1.1.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>bin\Debug\netcoreapp1.1\</OutputPath>
<DefineConstants>TRACE;DEBUG;NETCOREAPP1_1</DefineConstants>
</PropertyGroup>

<ItemGroup>
<Content Include="SimpleSFTPSyncCore.sqlite;config.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Design" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.0.0-msbuild3-final" />
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="SSH.NET" Version="2016.0.0" />
</ItemGroup>

<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild3-final" />
</ItemGroup>

</Project>
21 changes: 0 additions & 21 deletions src/SimpleSFTPSyncCore/SimpleSFTPSyncCore.xproj

This file was deleted.

42 changes: 0 additions & 42 deletions src/SimpleSFTPSyncCore/project.json

This file was deleted.

0 comments on commit 60115e2

Please sign in to comment.