11environment :
2+ VERIFY_STRONG_NAME : true
3+ MYGET_FEED_NAME : partialresponse
24 MYGET_API_KEY :
35 secure : nXDnbkmLZ0yeSj623ZeiGO+be5JhivxxrgiJ9lgHLVH/PKoI52UO2Kt6965QAAM+
46 NUGET_API_KEY :
@@ -35,8 +37,8 @@ install:
3537
3638dotnet_csproj :
3739 patch : true
38- file : ' src\$(APPVEYOR_PROJECT_NAME)\$(APPVEYOR_PROJECT_NAME).csproj'
39- version : ' $(RELEASE_VERSION)'
40+ file : src\$(APPVEYOR_PROJECT_NAME)\$(APPVEYOR_PROJECT_NAME).csproj
41+ version : $(RELEASE_VERSION)
4042
4143before_build :
4244- ps : |
@@ -60,19 +62,21 @@ build_script:
6062
6163after_build :
6264- ps : |
63- Write-Host "STARTED verifying strong name" -ForegroundColor Magenta
65+ If ($($env:VERIFY_STRONG_NAME) -eq "true") {
66+ Write-Host "STARTED verifying strong name" -ForegroundColor Magenta
6467
65- $sn = "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\sn.exe"
68+ $sn = "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\sn.exe"
6669
67- foreach ($assembly in ls "src\$env:APPVEYOR_PROJECT_NAME\bin\$env:CONFIGURATION\*\$env:APPVEYOR_PROJECT_NAME.dll") {
68- &$sn -vf $assembly
70+ foreach ($assembly in ls "src\$env:APPVEYOR_PROJECT_NAME\bin\$env:CONFIGURATION\*\$env:APPVEYOR_PROJECT_NAME.dll") {
71+ &$sn -vf $assembly
6972
70- if ($LastExitCode -ne 0) { Break }
71- }
73+ if ($LastExitCode -ne 0) { Break }
74+ }
7275
73- Write-Host "FINISHED verifying strong name" -ForegroundColor Magenta
76+ Write-Host "FINISHED verifying strong name" -ForegroundColor Magenta
7477
75- if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
78+ if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
79+ }
7680
7781 - ps : |
7882 Write-Host "STARTED creating NuGet package" -ForegroundColor Magenta
@@ -115,21 +119,20 @@ after_test:
115119 if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
116120
117121artifacts :
118- - path : artifacts\$(APPVEYOR_PROJECT_NAME).$(RELEASE_VERSION) .nupkg
119- - path : artifacts\$(APPVEYOR_PROJECT_NAME).$(RELEASE_VERSION).symbols.nupkg
122+ - path : artifacts\* .nupkg
123+ name : NuGet
120124
121125deploy :
122126- provider : NuGet
123- server : https://www.myget.org/F/partialresponse /api/v2
127+ server : https://www.myget.org/F/$(MYGET_FEED_NAME) /api/v2
124128 api_key : $(MYGET_API_KEY)
125129 skip_symbols : false
126- symbol_server : https://www.myget.org/F/partialresponse /symbols/api/v2/package
130+ symbol_server : https://www.myget.org/F/$(MYGET_FEED_NAME) /symbols/api/v2/package
127131 on :
128132 appveyor_repo_tag : false
129133
130134- provider : NuGet
131135 api_key : $(NUGET_API_KEY)
132136 skip_symbols : false
133- artifact : /.*\.nupkg/
134137 on :
135138 appveyor_repo_tag : true
0 commit comments