Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit fd48cca

Browse files
authored
Merge pull request #41 from getsentry/chore/project-structure
chore: project structure
2 parents 9d64609 + 4582595 commit fd48cca

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

Directory.Build.props

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
<Project>
22
<PropertyGroup>
3-
<LangVersion>7.2</LangVersion>
3+
<LangVersion>7.3</LangVersion>
44
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
55
<Version>1.0.6</Version>
66
<AssemblyOriginatorKeyFile>../../.assets/Sentry.snk</AssemblyOriginatorKeyFile>
77
<SignAssembly>true</SignAssembly>
8-
98
<Deterministic>True</Deterministic>
10-
11-
<!-- When compiling .NET SDK 2.0 projects targeting .NET 4.x on Mono using 'dotnet build' you -->
12-
<!-- have to teach MSBuild where the Mono copy of the reference asssemblies is -->
13-
<TargetIsMono Condition="'$(OS)' != 'Windows_NT' AND $(TargetFramework.StartsWith('net4'))">true</TargetIsMono>
14-
15-
<!-- Look in the standard install locations -->
16-
<BaseFrameworkPathOverrideForMono Condition="'$(BaseFrameworkPathOverrideForMono)' == '' AND '$(TargetIsMono)' == 'true' AND EXISTS('/Library/Frameworks/Mono.framework/Versions/Current/lib/mono')">/Library/Frameworks/Mono.framework/Versions/Current/lib/mono</BaseFrameworkPathOverrideForMono>
17-
<BaseFrameworkPathOverrideForMono Condition="'$(BaseFrameworkPathOverrideForMono)' == '' AND '$(TargetIsMono)' == 'true' AND EXISTS('/usr/lib/mono')">/usr/lib/mono</BaseFrameworkPathOverrideForMono>
18-
<BaseFrameworkPathOverrideForMono Condition="'$(BaseFrameworkPathOverrideForMono)' == '' AND '$(TargetIsMono)' == 'true' AND EXISTS('/usr/local/lib/mono')">/usr/local/lib/mono</BaseFrameworkPathOverrideForMono>
19-
20-
<!-- If we found Mono reference assemblies, then use them -->
21-
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net46'">$(BaseFrameworkPathOverrideForMono)/4.6-api</FrameworkPathOverride>
22-
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net462'">$(BaseFrameworkPathOverrideForMono)/4.6.2-api</FrameworkPathOverride>
23-
<EnableFrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != ''">true</EnableFrameworkPathOverride>
249
</PropertyGroup>
10+
<ItemGroup>
11+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.2" PrivateAssets="All" />
12+
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="2.9.2" PrivateAssets="All" />
13+
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="2.9.2" PrivateAsets="All" />
14+
</ItemGroup>
2515
</Project>

build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/bin/bash
22
set -e
33

4-
dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Sentry.Protocol.Test*]*"
4+
dotnet test -c Release \
5+
/p:CollectCoverage=true \
6+
/p:CoverletOutputFormat=opencover \
7+
/p:Exclude=\"[Sentry.Protocol.Test*]*,[xunit.*]*\" \
8+
/p:UseSourceLink=true
59

610
# Docs
711
pushd docs

docs/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
if [ ! -f ./docfx/docfx.exe ]; then
55
echo "Installing docfx"
6-
curl -sL https://github.com/dotnet/docfx/releases/download/v2.40.12/docfx.zip -o docfx.zip
6+
curl -sL https://github.com/dotnet/docfx/releases/download/v2.42.4/docfx.zip -o docfx.zip
77
unzip -oq docfx.zip -d docfx
88
fi
99

0 commit comments

Comments
 (0)