Coder Social home page Coder Social logo

Comments (10)

hvanbakel avatar hvanbakel commented on May 22, 2024

from csprojtovs2017.

mungojam avatar mungojam commented on May 22, 2024

Yeah, that's true. In our case I helpfully named the folder 'Libraries' instead, but maybe I could just change that instead rather than going to lots of effort with nuget client libraries.

Or maybe it could be a command line hint that can be passed in if you know what the packages folder is

from csprojtovs2017.

mungojam avatar mungojam commented on May 22, 2024

@hvanbakel I've started on it, but it looks like it could be done by applying the existing RemovePackageAssemblyReferencesTransformation after the other transformations have been applied. I was a bit surprised that the transformations are applied in parallel and not serially as a pipeline as I would think that some could benefit from the existing transformations as in this case.

I can submit what I've done anyway and leave it up to you

from csprojtovs2017.

hvanbakel avatar hvanbakel commented on May 22, 2024

from csprojtovs2017.

mungojam avatar mungojam commented on May 22, 2024

I'll have more of a play. I see now that AssemblyReferenceTransformation.RemoveExtraAssemblyReferences is applied after the other transformations. I expect that was just missing our packages folder because it is called Libraries.

So perhaps the only change I will make is to apply the same fix for targets. One for tomorrow or next week now though.

from csprojtovs2017.

hvanbakel avatar hvanbakel commented on May 22, 2024

Is this still an issue?

from csprojtovs2017.

mungojam avatar mungojam commented on May 22, 2024

I suspect there are two issues, one is that maybe targets aren't picked up and the other is the assumption on 'packages' folder. I'm going to have a go at solving the 'packages' folder one this evening.

from csprojtovs2017.

hvanbakel avatar hvanbakel commented on May 22, 2024

from csprojtovs2017.

mungojam avatar mungojam commented on May 22, 2024

That's right yeah, the same as for AssemblyReferences and so the treatment should be the same for both. You want to leave open the possibility that somebody has manually added some targets from somewhere else so only to remove those that have clearly come from packages.

from csprojtovs2017.

mungojam avatar mungojam commented on May 22, 2024

I've restricted this issue now to just cover the custom nuget packages folder. About to submit pull request. I'll raise a separate one for targets

from csprojtovs2017.

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.