Comments (5)
Thanks @coderpatros, I have shared the details on email to you.
Please let me know if you require any more information.
from cyclonedx-dotnet.
Hi @shounakitraj, that project file doesn't look valid to me. What framework is this?
Older versions of the tool would parse project file package references. Unfortunately this can miss dependencies.
For example when an explicit version isn't specified and dependencies that are brought in as a result of the target framework.
With newer versions of the tool a dotnet restore is triggered. This generates a project.assets.json file which includes all dependencies that are being used in the build.
Does dotnet restore work with that project file for you?
from cyclonedx-dotnet.
Hi @coderpatros, Thanks for quick response. Actually this is "Directory.Build.targets" file which contains list of all server side libraries required for project.
<Project>
<ItemGroup>
<!--Set Third party nuget versions-->
<PackageReference Update="AngleSharp" Version="0.9.4" />
<PackageReference Update="Apache.NMS.ActiveMQ" Version="1.7.2" />
<PackageReference Update="Aspose.BarCode" Version="19.4.0" />
<PackageReference Update="Aspose.Cells" Version="19.8.0" />
<PackageReference Update="Aspose.Pdf" Version="19.8.0" />
<PackageReference Update="Aspose.Words" Version="20.1.0" />
</ItemGroup>
</Project>
I am converting this .targets file to .csproj by replacing "Update" keyword to "Include"
The project is working correctly and have no issues while compiling,
The reason I need to use .targets file is, we have multiple projects in our solution file and we are maintaining this single .targets file for resolving all dependencies required in all projects.
from cyclonedx-dotnet.
Ah, try adding a section like this under the project element (just update the target framework)...
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
</PropertyGroup>
But we should support that use case. Are you able to send me any more details on your project structure, sanitised project files, etc that I might be able to replicate it locally? coderpatros at outlook dot com
from cyclonedx-dotnet.
This issue is stale because it has been open for 3 months with no activity.
from cyclonedx-dotnet.
Related Issues (20)
- CI: `set-output` command is deprecated HOT 1
- Floating versions not supported since version 3.0.0 HOT 4
- Metadata timestamp not being tested HOT 3
- Metadata timestamp not being tested
- Possible Bug: Metadata CycloneDX-version is taken over as SBOM version HOT 1
- 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
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.