Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Calculator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System;

namespace SampleApp
{
public class Calculator
Expand All @@ -21,5 +23,10 @@ public double Divide(int a, int b)
{
return a/b;
}

public double Power(int a, int b)
{
return Math.Pow(a, b);
}
}
}
3 changes: 3 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ static void Main(string[] args)
Console.WriteLine($"12 - 3 = {calc.Subtract(12,3)}");
Console.WriteLine($"12 * 3 = {calc.Multiply(12,3)}");
Console.WriteLine($"12 / 3 = {calc.Divide(12,3)}");
Console.WriteLine($"12 ^ 3 = {calc.Power(12,3)}");

// comment
}
}
}
1 change: 1 addition & 0 deletions SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<EnableRichCodeNavigation>true</EnableRichCodeNavigation>
</PropertyGroup>

</Project>
17 changes: 11 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.x
version: 3.x
- task: DotNetCoreCLI@2
inputs:
command: restore
Expand All @@ -28,13 +28,18 @@ steps:
inputs:
command: build
projects: "**/*.csproj"
- task: UseDotNet@2
displayName: 'Switch back to 2.0 Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.x
- task: MS-RichCodeNav.Indexer.build-task.RichCodeNavIndexer@0
displayName: Rich Code Navigation Upload to Staging
displayName: Rich Code Navigation Upload to Dev
inputs:
languages: 'csharp'
githubServiceConnection: 'noellelc'
environment: staging
isPrivateFeed: false
environment: development
nugetVersion: '0.1.1382-alpha'
nugetFeed: 'https://devdiv.pkgs.visualstudio.com/Personal/_packaging/richnav/nuget/v3/index.json'
isPrivateFeed: true
continueOnError: true
- script: echo Adding a final line

7 changes: 0 additions & 7 deletions nuget.config

This file was deleted.