diff --git a/Calculator.cs b/Calculator.cs index 6a126bc..c9d8842 100644 --- a/Calculator.cs +++ b/Calculator.cs @@ -1,3 +1,5 @@ +using System; + namespace SampleApp { public class Calculator @@ -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); + } } } \ No newline at end of file diff --git a/Program.cs b/Program.cs index 1e93143..124e0f6 100644 --- a/Program.cs +++ b/Program.cs @@ -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 } } } diff --git a/SampleApp.csproj b/SampleApp.csproj index c73e0d1..9ae1a78 100644 --- a/SampleApp.csproj +++ b/SampleApp.csproj @@ -3,6 +3,7 @@ Exe netcoreapp3.1 + true diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0934dd8..e5d03ba 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 @@ -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 - diff --git a/nuget.config b/nuget.config deleted file mode 100644 index 4401ce8..0000000 --- a/nuget.config +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file