Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocalles committed Aug 19, 2022
1 parent 76cf930 commit c029562
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Calculator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace TestSourceLink.Samples;

public class Calculator
{
public int Sum(int a, int b)
{
return a + b;
}

public int Multiply(int a, int b)
{
return a * b;
}

public double Divide(int a, int b)
{
return a / b;
}
}
9 changes: 9 additions & 0 deletions Logging.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace TestSourceLink.Samples;

internal class Logging
{
public void Log(string message)
{
Console.WriteLine(message);
}
}
47 changes: 47 additions & 0 deletions TestSourceLink.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<Title>Test SourceLink</Title>
<Authors>Osvaldo Calles</Authors>
<Company>Home</Company>
<Product>TestTools</Product>
<Description>NuGet Package with debug symbols</Description>
<PackageIcon>icons8-.net-framework-96.png</PackageIcon>
<PackageTags>test;sample</PackageTags>
<PackageId>Microsoft.Test.NuGetPackages</PackageId>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.0.10</Version>
<ContinuousIntegrationBuild>True</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup>
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<!--<SymbolPackageFormat>snupkg</SymbolPackageFormat>-->
</PropertyGroup>

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

<ItemGroup>
<None Update="icons8-.net-framework-96.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project>
25 changes: 25 additions & 0 deletions TestSourceLink.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.32817.444
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestSourceLink", "TestSourceLink.csproj", "{4B9AAE55-5165-4CE0-B9A4-F51AB20341F9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4B9AAE55-5165-4CE0-B9A4-F51AB20341F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4B9AAE55-5165-4CE0-B9A4-F51AB20341F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4B9AAE55-5165-4CE0-B9A4-F51AB20341F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4B9AAE55-5165-4CE0-B9A4-F51AB20341F9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1A13FBA0-C16F-4D31-B72A-20204F6C2E4C}
EndGlobalSection
EndGlobal
Binary file added icons8-.net-framework-96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c029562

Please sign in to comment.