GithubHelp home page GithubHelp logo

Comments (16)

distantcam avatar distantcam commented on August 27, 2024

I might have a fix for this, but it requires patching the build system. I'll keep experimenting.

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

Patching the build system??? U r making me nervous. Msbuild is very
fragile.

On 18/02/2013, at 6:22 PM, Cameron MacFarland [email protected]
wrote:

I might have a fix for this, but it requires patching the build system.
I'll keep experimenting.

β€”
Reply to this email directly or view it on
GitHubhttps://github.com//issues/3#issuecomment-13709208.

from costura.

distantcam avatar distantcam commented on August 27, 2024

Patching the build system??? U r making me nervous. Msbuild is very
fragile.

Pish posh! You just have to know how to hold it right. 😈

from costura.

distantcam avatar distantcam commented on August 27, 2024

Commited a fix for this on my branch. If you're happy with this I'll merge it in.

220d25f
3c95282

Did you want me to just take over this project?

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

more than happy for you to take it over :)

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

@distantcam have u push and updated version that fixes this?

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

some points

  1. I am really not sure the hoops you have jumped through are worth it when this is only a "nice to have"
  2. I dont think it will work with package restore. your Copy-Target will not run on restore so people wont have a copy of the targets. Or are people meant to check in the targets? If they are it kind of voids the whole "dont check in packages" approach of nuget.
  3. the targets approach makes it very "non standard" compared to every other fody weaver. If you want to stick to this approach you need to consider how you will educate users abour the difference. I have already had questiosn from 3 people asking about the targets file.

Either way there needs to be some doco around this

from costura.

johnsimons avatar johnsimons commented on August 27, 2024

πŸ‘Ž
Does it really matter if the dependency file is referenced, when still developing?
To me what is important is that when I package my project and do not add the dependency file that is embedded, the app works, and that all comes to testing it.

from costura.

distantcam avatar distantcam commented on August 27, 2024

It works with package restore because the nuget package copies the target file outside the package to the same place Fody is, which is then presumably checked in. I know the experience of a nuget package adding a target file, only to have said target disappear when deleting the packages folder coughMicrosoft.Bcl.Buildcough

For development, if there is a problem it provides immediate feedback, rather than developing, committing, waiting for build, having app tested and then finding a problem.

Still, if this is an unpopular feature, or it causes too much confusion I can take it out.

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

@distantcam

it is not an unpopular feature. the feature is valid.
But with the current implementation it is a trade off. the options are

  1. not having this feature and educating people that the references are not deleted
  2. having this feature and educating people on the targets qwerk

So Option 1 required people to know something. Option 2 requires people to know something and do something.
Also option 2 requires more code on our side.

So I would fall slightly on the Option 1 side.

But i am not adamant about it. I will leave it up to you.:)

from costura.

distantcam avatar distantcam commented on August 27, 2024

Well, I am in favour of a smaller codebase. And I'm a fan of KISS principle.

I'll change it back. ;)

On 27/02/2013, at 8:14 AM, Simon Cropp [email protected] wrote:

@distantcam https://github.com/distantcam

it is not an unpopular feature. the feature is valid.
But with the current implementation it is a trade off. the options are

  1. not having this feature and educating people that the references are
    not deleted
  2. having this feature and educating people on the targets qwerk

So Option 1 required people to know something. Option 2 requires people to
know something and do something.
Also option 2 requires more code on our side.

So I would fall slightly on the Option 1 side.

But i am not adamant about it. I will leave it up to you.:)

β€”
Reply to this email directly or view it on
GitHubhttps://github.com//issues/3#issuecomment-14148498
.

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

should we close this? and perhaps document it somewhere?

from costura.

distantcam avatar distantcam commented on August 27, 2024

@SimonCropp I want to add the build script to the source, and then add a wiki page describing how to use it. Then I'll close this issue.

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

go for it

from costura.

nmarler avatar nmarler commented on August 27, 2024

Hello - I'm looking for a little more guidance on this topic. FAQ "Creating a clean output directory" ends with "this does not handle ExcludeAssemblies or IncludeAssemblies options mentioned above. You will have to handle these explicitly."

I'm running into exactly that problem with ExcludeAssemblies - I have excluded two assemblies, but they are being deleted during the output directory clean up operation. I guess I don't know my way around project files or the build process very well, so I don't know how to "handle them explicitly" as the FAQ suggests. Can you provide some guidance? Thanks

from costura.

distantcam avatar distantcam commented on August 27, 2024

@nmarler For now, just remove the target from your project. There's no harm in having all the assemblies there.

This has given me an idea. We could make the target added to the project smarter and automatically exclude the assemblies from cleanup. Gonna create an issue to discuss this.

from costura.

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.