Comments (9)
0.3.2 published. Will be available shortly.
from cyclonedx-dotnet.
Interestingly, when I login as the build service user on the build server, and run the command directly, it works...
from cyclonedx-dotnet.
Hmm, so I uninstalled 0.3.1 and installed 0.3.2 -- seems to still happen:
I am executing the app via powershell start-process:
It works outside of the build operation.
Any tips?
from cyclonedx-dotnet.
The path issue seems to be expected behavior. Someone at Microsoft must think that information disclosure in error messages is a good thing.
Regarding execution. I only have the ability to execute from command line. I don't have access to a Windows machine so cannot powershell. It appears to be caught on line 177 which is:
Console.SetCursorPosition(Console.CursorLeft, Console.CursorTop - 1);
Perhaps powershell is doing something weird with the console. Don't know.
from cyclonedx-dotnet.
I also just tried loading cyclonedx-dotnet into the local working directory:
@stevespringett note that I can run this via powershell on a windows machine outside of the build operation without problems. (same script I'm running in the build)
from cyclonedx-dotnet.
@stevespringett https://stackoverflow.com/a/18366631
You may just have to try/catch the cursor manipulation for now... :(
I think it has to do with TFS build operation redirecting output.
Update: confimed my suspicion... when I force redirecting standard output, it blows up on my dev box:
Start-Process -NoNewWindow -Wait -RedirectStandardOutput $true -FilePath "dotnet-cyclonedx.exe" -ArgumentList $bomArgs
from cyclonedx-dotnet.
OK, another update... I got around the problem by totally silencing any output from the tool:
Start-Process -WindowStyle Hidden -Wait -FilePath "dotnet-cyclonedx.exe" -ArgumentList $bomArgs | Out-Null
from cyclonedx-dotnet.
Thanks for the stackoverflow link. I removed the setting of cursor. There were two occurrances of this in the code which have since been removed. I pushed 0.3.3 to NuGet and it should be available shortly.
If you could test this and verify that it works without the workaround, that would be great.
Thanks for your patience and help in getting the dotnet plugin to where it needs to be.
from cyclonedx-dotnet.
@stevespringett confirmed! 0.3.3 resolved the issue. Thank you!
from cyclonedx-dotnet.
Related Issues (20)
- Arguments setName/-Version/-Type should override Metadata
- SBOM for Unity-project created without any components HOT 6
- Issue with Project References during sln analysis HOT 2
- Crash when using -rs with referenced project that has multiple target frameworks HOT 4
- "Unable to locate valid bom ref" when AssemblyName is != project name in referenced project HOT 15
- BOM should include Framework Components HOT 5
- File Globbing ProjectReferences not supported HOT 3
- dotnet CycloneDX Use these two parameters: --exclude-test-projects --exclude-dev why doesn't it work? I want to delete the name in the box HOT 4
- Set additional properties when generating sbom for nugets HOT 3
- Scope property is always being set to required HOT 4
- Utilize package mapping to source additional information HOT 1
- Exclude developer dependencies is not reflecting real runtime dependencies HOT 2
- Support providing a solution filter HOT 5
- System.UnauthorizedAccessException thrown if .csproj file is read-only HOT 3
- Inconsistent Timestamp Representation in XML and JSON BOM Files HOT 3
- CycloneDX should fail when the provided project file was not found HOT 3
- Read version from project file
- CycloneDX.NET finishes successfully when package restore fails HOT 4
- Invalid license URL is generated HOT 3
- Schema validation fails with git style URL HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclonedx-dotnet.