diff --git a/.vsts/ci-build.yml b/.vsts/ci-build.yml index 107d12787..da41cd560 100644 --- a/.vsts/ci-build.yml +++ b/.vsts/ci-build.yml @@ -24,7 +24,7 @@ jobs: displayName: build solution (Release) inputs: command: "build" - projects: OpenTelemetry.sln + projects: OpenTelemetry.proj arguments: "--configuration Release" # consider switch to https://docs.microsoft.com/vsts/pipelines/tasks/test/vstest?view=vsts @@ -50,7 +50,7 @@ jobs: displayName: build inputs: command: "build" - projects: OpenTelemetry.sln + projects: OpenTelemetry.proj arguments: "--configuration Release" - task: DotNetCoreCLI@2 diff --git a/.vsts/ci-myget-update.yml b/.vsts/ci-myget-update.yml index 2751cc2b2..af84cf803 100644 --- a/.vsts/ci-myget-update.yml +++ b/.vsts/ci-myget-update.yml @@ -24,7 +24,7 @@ steps: displayName: pack solution with symbols (Release) inputs: command: "pack" - projects: OpenTelemetry.sln + projects: OpenTelemetry.proj configuration: 'Release' packDirectory: '$(build.artifactStagingDirectory)' buildProperties: "SymbolPackageFormat=snupkg" diff --git a/OpenTelemetry.proj b/OpenTelemetry.proj new file mode 100644 index 000000000..3ef311bca --- /dev/null +++ b/OpenTelemetry.proj @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/Common.prod.props b/build/Common.prod.props index 5a3af7d72..bd5be3201 100644 --- a/build/Common.prod.props +++ b/build/Common.prod.props @@ -1,9 +1,11 @@ + + $(MSBuildThisFileDirectory)/OpenTelemetry.prod.ruleset - $(OutputPath)/$(TargetFramework)/$(AssemblyName).xml $(Build_ArtifactStagingDirectory) + true @@ -17,34 +19,6 @@ - - - 0 - 1 - 0 - - alpha - - 2018-08-25 - - $([MSBuild]::Divide($([System.DateTime]::Now.Subtract($([System.DateTime]::Parse($(SemanticVersionDate)))).TotalMinutes), 5).ToString('F0')) - - - - $(SemanticVersionMajor).$(SemanticVersionMinor).$(SemanticVersionPatch) - $(PreReleaseMilestone)-$(PreReleaseVersion) - $(SemanticVersionMajor).$(SemanticVersionMinor).$(SemanticVersionPatch).$(PreReleaseVersion) - - true diff --git a/build/Version.props b/build/Version.props new file mode 100644 index 000000000..ad0da62b8 --- /dev/null +++ b/build/Version.props @@ -0,0 +1,30 @@ + + + + + 0 + 1 + 0 + + alpha + + 2018-08-25 + + $([MSBuild]::Divide($([System.DateTime]::Now.Subtract($([System.DateTime]::Parse($(SemanticVersionDate)))).TotalMinutes), 5).ToString('F0')) + + + + $(SemanticVersionMajor).$(SemanticVersionMinor).$(SemanticVersionPatch) + $(PreReleaseMilestone)-$(PreReleaseVersion) + $(SemanticVersionMajor).$(SemanticVersionMinor).$(SemanticVersionPatch).$(PreReleaseVersion) + + \ No newline at end of file diff --git a/src/Samples/Samples.csproj b/src/Samples/Samples.csproj index 3a2149f78..c0895baad 100644 --- a/src/Samples/Samples.csproj +++ b/src/Samples/Samples.csproj @@ -1,4 +1,5 @@  + Exe