Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for csproj parsing #10

Merged
merged 1 commit into from
May 8, 2024

Conversation

macnev2013
Copy link

Description

This PR adds support for parsing csproject file in the dotnet project.

Potential Issue

  • This parser may not return the exact version of the dependancy since the parser is based of csproj file.
  • Solution: To avoid such issue we can use the lock files as described below.

Projects with Lock files

Lock file provides constant versioning for the dependancies present. To generate a lock file,

  • Add the following options to your csproj file.
    <PropertyGroup>
      <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
    </PropertyGroup>
  • Once this configuration is added, run dotnet restore - this will generate a package.lock.json file in your repo.

Reference: https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/

@rishabh-arya95 rishabh-arya95 merged commit 58a02e6 into LambdaTest:main May 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants