Skip to content

Commit bc25b70

Browse files
author
Jonas Rylund Glesaaen
authored
Enable SourceLink (#41)
* Added SourceLink and related project flags * Updated appveyor to use VS 2019
1 parent 0c69539 commit bc25b70

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: '{build}'
2-
image: Visual Studio 2017
2+
image: Visual Studio 2019
33
build_script:
44
- pwsh: >-
55
pushd src
@@ -19,4 +19,4 @@ test_script:
1919
2020
popd
2121
22-
Exit $LASTEXITCODE
22+
Exit $LASTEXITCODE

src/SimSharp/SimSharp.csproj

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ Sim# allows modeling processes easily and with little boiler plate code. A proce
7373
<RepositoryUrl>https://github.com/heal-research/SimSharp.git</RepositoryUrl>
7474
<RepositoryType>git</RepositoryType>
7575
<PackageTags>discrete-event simulation</PackageTags>
76+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
77+
<!-- including PDB files in NuGet for source link because symbolsource.org does not support portable PDBs -->
78+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
79+
</PropertyGroup>
80+
81+
<PropertyGroup Condition="'$(APPVEYOR)' == 'True'">
82+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
7683
</PropertyGroup>
7784

7885
<Target Name="CopyDocumentationFile" AfterTargets="ComputeFilesToPublish">
@@ -88,4 +95,11 @@ Sim# allows modeling processes easily and with little boiler plate code. A proce
8895
<ItemGroup>
8996
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
9097
</ItemGroup>
91-
</Project>
98+
99+
<ItemGroup>
100+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
101+
<PrivateAssets>all</PrivateAssets>
102+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
103+
</PackageReference>
104+
</ItemGroup>
105+
</Project>

0 commit comments

Comments
 (0)