Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Commit

Permalink
Enable SourceLink (#34)
Browse files Browse the repository at this point in the history
Bump version to 2.1.1, enable SourceLink
  • Loading branch information
nil4 authored May 16, 2019
1 parent 9e70320 commit ad49457
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ is that you can use the same command, for both installation and usage, across al
Install `dotnet-xdt` as a global tool (only once):

```cmd
dotnet tool install --global dotnet-xdt --version 2.1.0
dotnet tool install --global dotnet-xdt --version 2.1.1
```

And then you can apply XDT transforms, from the command-line, anywhere on your PC, e.g.:
Expand Down Expand Up @@ -58,7 +58,7 @@ Download the latest build of `dotnet-xdt.exe` from the [releases page](https://g
For complete flexibility, reference the cross-platform `DotNet.Xdt` NuGet package in your application:

```cmd
dotnet add package DotNet.Xdt --version 2.1.0
dotnet add package DotNet.Xdt --version 2.1.1
```

You can apply XDT transforms to any XML file, or other XML sources that can be read from
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ clone_depth: 1
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_SDK_URL: 'https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.202/dotnet-sdk-2.2.202-win-x64.zip'
DOTNET_SDK_URL: 'https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.204/dotnet-sdk-2.2.204-win-x64.zip'

cache:
- '%LocalAppData%\NuGet\v3-cache' # NuGet v3
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ pool:

steps:
- task: UseDotNet@2
displayName: 'Install SDK 2.2.202'
displayName: 'Install SDK 2.2.204'
inputs:
version: 2.2.202
version: 2.2.204

- task: BatchScript@1
displayName: 'Run build.cmd'
Expand Down
5 changes: 3 additions & 2 deletions dotnet-xdt.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.3
# Visual Studio Version 16
VisualStudioVersion = 16.0.28803.452
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnet-xdt", "dotnet-xdt\dotnet-xdt.csproj", "{7E89DBBC-A6D2-473C-8FEC-44C6E516C7E0}"
EndProject
Expand All @@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Misc", "Misc", "{403FCE60-1
.editorconfig = .editorconfig
.gitignore = .gitignore
appveyor.yml = appveyor.yml
azure-pipelines.yml = azure-pipelines.yml
build.cmd = build.cmd
global.json = global.json
LICENSE.txt = LICENSE.txt
Expand Down
6 changes: 3 additions & 3 deletions dotnet-xdt.tests/dotnet-xdt.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Fixie" Version="2.0.2" />
<PackageReference Include="Shouldly" Version="3.0.1" />
<DotNetCliToolReference Include="Fixie.Console" Version="2.0.0" />
<PackageReference Include="Fixie" Version="2.0.4" />
<PackageReference Include="Shouldly" Version="3.0.2" />
<DotNetCliToolReference Include="Fixie.Console" Version="2.0.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\dotnet-xdt\dotnet-xdt.csproj" />
Expand Down
12 changes: 7 additions & 5 deletions dotnet-xdt/dotnet-xdt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
<LangVersion>latest</LangVersion>
<Features>strict</Features>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<OutputType>Exe</OutputType>

<RootNamespace>DotNet.Xdt</RootNamespace>
<AssemblyName>dotnet-xdt</AssemblyName>

<FileVersion>2.1.0</FileVersion>
<FileVersion>2.1.1</FileVersion>
<Version>$(FileVersion)</Version>

<_ReleaseNotes>Use `dotnet-xdt` as a .NET Core 2.1 global tool, or standalone .NET 4.6.1 executable. Reference `DotNet.Xdt` as a .NET Standard 2.0 library.</_ReleaseNotes>
<_ReleaseNotes>Enable [SourceLink](https://github.com/dotnet/sourcelink#readme) for access to original source code while debugging.</_ReleaseNotes>
</PropertyGroup>

<PropertyGroup Label="Library" Condition=" '$(TargetFrameworks)' == '$(_LibTFM)' ">
Expand Down Expand Up @@ -55,11 +56,12 @@
<RepositoryUrl>https://github.com/nil4/dotnet-transform-xdt.git</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<MinClientVersion>4.0</MinClientVersion>

<!-- Disable 'The package uses SemVer 2.0.0' warning; https://github.com/NuGet/Home/issues/4687 -->
<NoWarn>NU5105</NoWarn>
</PropertyGroup>

<ItemGroup Label="SourceLink">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<Compile Remove="Program.cs" Condition=" '$(OutputType)' != 'Exe' " />

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "2.2.202"
"version": "2.2.204"
}
}
1 change: 0 additions & 1 deletion test.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ dotnet.exe msbuild /t:Restore /p:Configuration=Release

pushd dotnet-xdt.tests
dotnet.exe fixie --configuration Release --report test-results.xml
popd

0 comments on commit ad49457

Please sign in to comment.