Since websdk repo is private, opening an issue here..
The glob patterns in sdk/websdk publish folders that should be considered "hidden" like .vscode.
This probably also applies to files/folders that one would expect to be hidden.. Maybe every file/folder starting with a dot?
@guardrex also discovered that the Properties folder is deployed as well thus deploying publish profiles.
Steps to reproduce:
dotnet new -t web1.1dotnet restorecode .dotnet publish -c Releasels -la bin/Release/netcoreapp1.1/publish/.vscode/-rw-r--r-- 1 martin staff 1262 Jan 11 21:44 launch.json
-rw-r--r-- 1 martin staff 332 Jan 11 21:44 tasks.json
dotnet --info output:
.NET Command Line Tools (1.0.0-preview5-004478)
Product Information:
Version: 1.0.0-preview5-004478
Commit SHA-1 hash: 4d3e2872fe
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.0-preview5-004478
cc @dsplaisted @mlorbetske
Yes, I'm seeing this behavior here ...
dotnet publish -c Release -r win10-x64
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<AssemblyTitle>Test Self-contained Application</AssemblyTitle>
<TargetFramework>netcoreapp1.1</TargetFramework>
<WarningsAsErrors>true</WarningsAsErrors>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>testselfcontained</AssemblyName>
<OutputType>Exe</OutputType>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<Optimize Condition="'$(Configuration)'!='Debug'">true</Optimize>
</PropertyGroup>
<!--<ItemGroup>
<Content Include="testfile.txt" CopyToPublishDirectory="Always" CopyToOutputDirectory="Always" />
</ItemGroup>-->
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.0" />
</ItemGroup>
<Target Name="CreateLogsFolder" AfterTargets="AfterPublish">
<MakeDir Directories="$(PublishDir)Logs" Condition="!Exists('$(PublishDir)Logs')" />
</Target>
</Project>
.NET Command Line Tools (1.0.0-preview5-004478)
Product Information:
Version: 1.0.0-preview5-004478
Commit SHA-1 hash: 4d3e2872fe
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0-preview5-004478
cc @vijayrkn