File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,17 @@ add_custom_target(test
176176
177177# Pack target for distribution - dependent on preprocessing
178178add_custom_target (pack
179- COMMAND dotnet pack ${PROJECT_DIR} /OpenLanguage.csproj --artifacts-path "${CMAKE_BINARY_DIR} /artifacts/${PROJECT_NAME} /pack" --configuration Release --property:OutputPath="${CMAKE_BINARY_DIR} /packages"
179+ COMMAND dotnet pack ${PROJECT_DIR} /OpenLanguage.csproj
180+ --artifacts-path "${CMAKE_BINARY_DIR} /artifacts/${PROJECT_NAME} /pack"
181+ --configuration Release
182+ --property:OutputPath="${CMAKE_BINARY_DIR} /packages"
180183 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
184+
185+ COMMAND ${CMAKE_COMMAND} -E copy
186+ "${CMAKE_BINARY_DIR} /artifacts/${PROJECT_NAME} /pack/package/release/*.nupkg"
187+ "${CMAKE_BINARY_DIR} /packages"
188+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
189+
181190 COMMAND echo "Ready to publish to NuGet. Run: dotnet nuget push ${CMAKE_BINARY_DIR} /packages/*.nupkg --source https://api.nuget.org/v3/index.json"
182191 DEPENDS process
183192 COMMENT "Packaging for NuGet publication"
You can’t perform that action at this time.
0 commit comments