Skip to content

Commit

Permalink
Enable SourceLink (#41)
Browse files Browse the repository at this point in the history
* Added SourceLink and related project flags
* Updated appveyor to use VS 2019
  • Loading branch information
Jonas Rylund Glesaaen authored Feb 3, 2022
1 parent 0c69539 commit bc25b70
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: '{build}'
image: Visual Studio 2017
image: Visual Studio 2019
build_script:
- pwsh: >-
pushd src
Expand All @@ -19,4 +19,4 @@ test_script:
popd
Exit $LASTEXITCODE
Exit $LASTEXITCODE
16 changes: 15 additions & 1 deletion src/SimSharp/SimSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ Sim# allows modeling processes easily and with little boiler plate code. A proce
<RepositoryUrl>https://github.com/heal-research/SimSharp.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>discrete-event simulation</PackageTags>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- including PDB files in NuGet for source link because symbolsource.org does not support portable PDBs -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<PropertyGroup Condition="'$(APPVEYOR)' == 'True'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<Target Name="CopyDocumentationFile" AfterTargets="ComputeFilesToPublish">
Expand All @@ -88,4 +95,11 @@ Sim# allows modeling processes easily and with little boiler plate code. A proce
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
</Project>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

0 comments on commit bc25b70

Please sign in to comment.