You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dotnet task utils converts the input path(s), e.g. rootPath:"path/to/my.sln;path/to/other.sln" into working directories for each command, instead of calling the restore with the path as an argument: jfrog-azure-devops-extension/tasks/JFrogDotnet/dotnetBuild.js
This fails the restore, when there are multiple sln files in the same folder.
Current behavior
Executing JFrog CLI Command:
xx\_tool\jf\2.37.3\x64\jf.exe dotnet restore --no-cache --build-name="xx" --build-number="*xx"
08:50:56 [Info] Running dotnet...
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
08:50:56 [Error] exit status 1
##[debug]task result: Failed
Based on the current code, the command is being changed to not include the path to the files anymore, but strip them to the parent folder and loop through these, using them as working directory:
rootPath input variable accepts semi colon separated .sln paths. From the user perspective, I expected these to be called in the commands as well and be individually restored.
Either make the rootPath variable fail on .sln file inputs to reflect the code behavior or use the actual .sln paths in the arguments (preferred).
Azure DevOps extension name and version
JFrog 2.6.4
JFrog CLI version
Task Version: 1.6.4
Operating system type and version
JFrog Artifactory version (if relevant)
No response
JFrog Xray version (if relevant)
No response
JFrog Distribution version (if relevant)
No response
The text was updated successfully, but these errors were encountered:
I ran into the same issue today. Found a work-around, though, haven't tested if it works yet.
In the task definition file https://github.com/jfrog/jfrog-azure-devops-extension/blob/v2/tasks/JFrogDotnet/task.json, there is a help text for rootPath input param: "Path to the root directory of a solution/project file to use. If the directory includes more than one sln files, then the first argument passed in the Arguments field should be the name (not the path) of the sln file. Accepts Ant-style patterns."
So put the path in rootPath and add one argument containing your solution name (quoted), it should work.
Describe the bug
The dotnet task utils converts the input path(s), e.g. rootPath:"path/to/my.sln;path/to/other.sln" into working directories for each command, instead of calling the restore with the path as an argument: jfrog-azure-devops-extension/tasks/JFrogDotnet/dotnetBuild.js
This fails the restore, when there are multiple sln files in the same folder.
Current behavior
Executing JFrog CLI Command:
xx\_tool\jf\2.37.3\x64\jf.exe dotnet restore --no-cache --build-name="xx" --build-number="*xx"
08:50:56 [Info] Running dotnet...
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
08:50:56 [Error] exit status 1
##[debug]task result: Failed
Based on the current code, the command is being changed to not include the path to the files anymore, but strip them to the parent folder and loop through these, using them as working directory:
instead of the assumed:
Reproduction steps
Expected behavior
rootPath input variable accepts semi colon separated .sln paths. From the user perspective, I expected these to be called in the commands as well and be individually restored.
Either make the rootPath variable fail on .sln file inputs to reflect the code behavior or use the actual .sln paths in the arguments (preferred).
Azure DevOps extension name and version
JFrog 2.6.4
JFrog CLI version
Task Version: 1.6.4
Operating system type and version
JFrog Artifactory version (if relevant)
No response
JFrog Xray version (if relevant)
No response
JFrog Distribution version (if relevant)
No response
The text was updated successfully, but these errors were encountered: