Coder Social home page Coder Social logo

Comments (5)

sitraj avatar sitraj commented on July 17, 2024 1

Thanks @coderpatros, I have shared the details on email to you.

Please let me know if you require any more information.

from cyclonedx-dotnet.

coderpatros avatar coderpatros commented on July 17, 2024

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.

sitraj avatar sitraj commented on July 17, 2024

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.

coderpatros avatar coderpatros commented on July 17, 2024

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.

github-actions avatar github-actions commented on July 17, 2024

This issue is stale because it has been open for 3 months with no activity.

from cyclonedx-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.