Git Product home page Git Product logo

sourcefilefinder's People

Contributors

egil avatar simoncropp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sourcefilefinder's Issues

Version conflict detected for Microsoft.CodeAnalysis.CSharp.Workspaces

Describe the bug or question
We are using Microsoft.CodeAnalysis packages V3.7 and we have a nuget restore error because of a version conflict.

Example:
Add the latest Microsoft.CodeAnalysis.CSharp.Features package to the test project.

Results in this output:

Build Error:

2>C:\Repos\Frontend\Tests\Frontend.BlazorControls.Tests.csproj : error NU1107: Version conflict detected for Microsoft.CodeAnalysis.CSharp.Workspaces. Install/reference Microsoft.CodeAnalysis.CSharp.Workspaces 3.7.0 directly to project Frontend.BlazorControls.Tests to resolve this issue. 
2>C:\Repos\Frontend\Tests\Frontend.BlazorControls.Tests.csproj : error NU1107:  Frontend.BlazorControls.Tests -> Microsoft.CodeAnalysis.CSharp.Features 3.7.0 -> Microsoft.CodeAnalysis.CSharp.Workspaces (= 3.7.0) 
2>C:\Repos\Frontend\Tests\Frontend.BlazorControls.Tests.csproj : error NU1107:  Frontend.BlazorControls.Tests -> bunit.xunit 1.0.0-beta-9 -> SourceFileFinder 1.0.0-preview-1 -> Microsoft.CodeAnalysis 3.5.0 -> Microsoft.CodeAnalysis.CSharp.Workspaces (= 3.5.0).

Expected behavior:
There should be no public dependencies for CodeAnalysis packages.

Fix:
Remove the public dependency of CodeAnalysis packages in SourceFileFinder

Version info:

  • Library version: 1.0.0-beta-9
  • .NET Core/Blazor version: 3.1

Additional context:
Update the package reference in the project file and set private assets to all.

    <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Features" Version="3.7.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.7.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </PackageReference>
```

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.