@@ -10,7 +10,9 @@ pool: default
1010
1111variables :
1212 solution : ' LogScope.NET.sln'
13- project : ' LogScope.NET/LogScope.NET.csproj'
13+ project_standard : ' LogScope/LogScope.csproj'
14+ project_net : ' LogScope.NET/LogScope.NET.csproj'
15+ project_microsoft : ' MicrosoftLogger/DevInstance.LogScope.Extensions.MicrosoftLogger.csproj'
1416 buildPlatform : ' Any CPU'
1517 buildConfiguration : ' Release'
1618
@@ -22,20 +24,52 @@ steps:
2224 restoreSolution : ' $(solution)'
2325# The first task is the dotnet command build, pointing to our csproj file
2426- task : DotNetCoreCLI@2
25- displayName : ' dotnet build'
27+ displayName : ' dotnet build $(project_standard) '
2628 inputs :
2729 command : ' build'
2830 arguments : ' --configuration $(buildConfiguration)'
29- projects : ' $(project)'
31+ projects : ' $(project_standard)'
32+
33+ - task : DotNetCoreCLI@2
34+ displayName : ' dotnet build $(project_net)'
35+ inputs :
36+ command : ' build'
37+ arguments : ' --configuration $(buildConfiguration)'
38+ projects : ' $(project_net)'
39+
40+ - task : DotNetCoreCLI@2
41+ displayName : ' dotnet build $(project_microsoft)'
42+ inputs :
43+ command : ' build'
44+ arguments : ' --configuration $(buildConfiguration)'
45+ projects : ' $(project_microsoft)'
3046
3147# The second task is dotnet pack command again pointing to the csproj file
3248# The nobuild means the project will not be compiled before running pack, because its already built in above step
3349- task : DotNetCoreCLI@2
34- displayName : " dotnet pack"
50+ displayName : " dotnet pack $(project_standard)"
51+ inputs :
52+ command : ' pack'
53+ arguments : ' --configuration $(buildConfiguration)'
54+ packagesToPack : ' $(project_standard)'
55+ nobuild : true
56+ versioningScheme : ' off'
57+
58+ - task : DotNetCoreCLI@2
59+ displayName : " dotnet pack $(project_net)"
60+ inputs :
61+ command : ' pack'
62+ arguments : ' --configuration $(buildConfiguration)'
63+ packagesToPack : ' $(project_net)'
64+ nobuild : true
65+ versioningScheme : ' off'
66+
67+ - task : DotNetCoreCLI@2
68+ displayName : " dotnet pack $(project_microsoft)"
3569 inputs :
3670 command : ' pack'
3771 arguments : ' --configuration $(buildConfiguration)'
38- packagesToPack : ' $(project )'
72+ packagesToPack : ' $(project_microsoft )'
3973 nobuild : true
4074 versioningScheme : ' off'
4175
4680 feedsToUse : ' select'
4781 packagesToPush : ' $(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
4882 nuGetFeedType : ' internal'
49- publishVstsFeed : ' NugetFeed '
83+ publishVstsFeed : ' LogscopeFeed '
5084 versioningScheme : ' off'
5185 allowPackageConflicts : true
0 commit comments