Skip to content

Commit

Permalink
Merge branch 'develop2'
Browse files Browse the repository at this point in the history
  • Loading branch information
yar229 committed Oct 16, 2019
2 parents b59f6ae + 1e2ec59 commit ad7598c
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 41 deletions.
2 changes: 1 addition & 1 deletion MailRuCloud/MailRuCloudApi/Base/Streams/UploadStream.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace YaR.MailRuCloud.Api.Base.Streams
{
#if NETCOREAPP2_2
#if NETCOREAPP3_0

internal class UploadStream : UploadStreamHttpClient
{
Expand Down
4 changes: 2 additions & 2 deletions MailRuCloud/MailRuCloudApi/MailRuCloudApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<PropertyGroup>
<NoWarn>$(NoWarn);NU1605</NoWarn>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
<RootNamespace>YaR.MailRuCloud.Api</RootNamespace>
<AssemblyName>MailRuCloud.Api</AssemblyName>
<AssemblyVersion>1.10.7.13</AssemblyVersion>
<FileVersion>1.10.7.13</FileVersion>
<LangVersion>7.3</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.2|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.0|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<PropertyGroup>
<NoWarn>$(NoWarn);NU1605</NoWarn>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
<RootNamespace>YaR.MailRuCloud.TwoFA.UI</RootNamespace>
<AssemblyName>MailRuCloud.TwoFA.UI.Console</AssemblyName>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.2|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.0|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<PropertyGroup>
<NoWarn>$(NoWarn);NU1605</NoWarn>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
<RootNamespace>YaR.MailRuCloud.TwoFA.UI</RootNamespace>
<AssemblyName>MailRuCloud.TwoFA.UI.File</AssemblyName>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.2|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.0|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.2|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.0|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions NWebDav/NWebDav.Server/NWebDav.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.2|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.0|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
Expand Down
14 changes: 0 additions & 14 deletions WDMRC.Console/Properties/PublishProfiles/FolderProfile.pubxml

This file was deleted.

15 changes: 15 additions & 0 deletions WDMRC.Console/Properties/PublishProfiles/FolderProfileLinux.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>ReleaseBinaries</Configuration>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PublishDir>bin\Publish\Linux</PublishDir>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<Platform>x64</Platform>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions WDMRC.Console/WDMRC.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<NoWarn>$(NoWarn);NU1605</NoWarn>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<DefineConstants>TRACE;RELEASE;NETCOREAPP2_2</DefineConstants>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
<DefineConstants>TRACE;RELEASE;NETCOREAPP3_0</DefineConstants>
<Authors>YaR</Authors>
<Company />
<Product>WebDAVCloudMailRu</Product>
Expand Down
4 changes: 2 additions & 2 deletions WebDAV.Uploader/WDMRC.Console.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<PropertyGroup>
<NoWarn>$(NoWarn);NU1605</NoWarn>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
<AssemblyName>mrclient</AssemblyName>
<RootNamespace>YaR.CloudMailRu.Client.Console</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.2|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.0|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions WebDavMailRuCloudStore/WebDavMailRuCloudStore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<NoWarn>$(NoWarn);NU1605</NoWarn>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
<RootNamespace>YaR.WebDavMailRu.CloudStore</RootNamespace>
<AssemblyName>MailRuCloud.NWebDav.Store</AssemblyName>
</PropertyGroup>
Expand All @@ -17,7 +17,7 @@
<WarningsAsErrors />
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.2|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.0|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions WinServiceInstaller/WinServiceInstaller.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<NoWarn>$(NoWarn);NU1605</NoWarn>
<OutputType>library</OutputType>
<TargetFrameworks>netcoreapp2.2;net461</TargetFrameworks>
<DefineConstants>TRACE;RELEASE;NETCOREAPP2_2</DefineConstants>
<TargetFrameworks>netcoreapp3.0;net461</TargetFrameworks>
<DefineConstants>TRACE;RELEASE;NETCOREAPP3_0</DefineConstants>
<PackageId></PackageId>
<AssemblyVersion>1.10.0.5</AssemblyVersion>
<FileVersion>1.10.0.5</FileVersion>
Expand All @@ -18,7 +18,7 @@
<WarningsAsErrors />
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.2|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp3.0|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
Expand Down
22 changes: 15 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ variables:
steps:
- task: NuGetToolInstaller@0

#- task: UseDotNet@2
# displayName: 'Use .NET Core sdk'
# inputs:
# packageType: sdk
# version: 3.x
# includePreviewVersions: true
# installationPath: $(Agent.ToolsDirectory)/dotnet

#- task: NuGetCommand@2
# inputs:
# restoreSolution: '$(solution)'
Expand Down Expand Up @@ -61,34 +69,34 @@ steps:
command: 'publish'
projects: 'WDMRC.Console/WDMRC.Console.csproj'
publishWebProjects: false # Required when command == Publish
arguments: '--configuration $(BuildConfiguration) --framework netcoreapp2.2'
arguments: '--configuration $(BuildConfiguration) --framework netcoreapp3.0'

- task: Bash@3
displayName: .NETCore copy artifact to WebDAVCloudMailRu-$(Build.SourceBranchName)-dotNetCore22.zip
displayName: .NETCore copy artifact to WebDAVCloudMailRu-$(Build.SourceBranchName)-dotNetCore30.zip
inputs:
targetType: 'inline'
script: 'cp WDMRC.Console/bin/Release/netcoreapp2.2/publish.zip ''$(Build.ArtifactStagingDirectory)''/WebDAVCloudMailRu-$(Build.SourceBranchName)-dotNetCore22.zip'
script: 'cp WDMRC.Console/bin/Release/netcoreapp3.0/publish.zip ''$(Build.ArtifactStagingDirectory)''/WebDAVCloudMailRu-$(Build.SourceBranchName)-dotNetCore30.zip'

#- task: CopyFiles@2
# displayName: .NETCore copy artifact
# inputs:
# SourceFolder: 'WDMRC.Console/bin/Release/netcoreapp2.2/'
# SourceFolder: 'WDMRC.Console/bin/Release/netcoreapp3.0/'
# Contents: 'publish.zip'
# TargetFolder: '$(Build.ArtifactStagingDirectory)'

#- task: Bash@3
# displayName: .NETCore artifacts clean
# inputs:
# targetType: 'inline'
# script: 'rm WDMRC.Console/bin/Release/netcoreapp2.2/*.pdb'
# script: 'rm WDMRC.Console/bin/Release/netcoreapp3.0/*.pdb'

#- task: ArchiveFiles@2
# displayName: .NETCore artifacts archive
# inputs:
# rootFolderOrFile: 'WDMRC.Console/bin/Release/netcoreapp2.2/'
# rootFolderOrFile: 'WDMRC.Console/bin/Release/netcoreapp3.0/'
# includeRootFolder: false
# archiveType: 'zip'
# archiveFile: '$(Build.ArtifactStagingDirectory)/WebDAVCloudMailRu-$(Build.SourceBranchName)-dotNetCore22.zip'
# archiveFile: '$(Build.ArtifactStagingDirectory)/WebDAVCloudMailRu-$(Build.SourceBranchName)-dotNetCore30.zip'
# replaceExistingArchive: true

#=============================================================================================================
Expand Down

0 comments on commit ad7598c

Please sign in to comment.