Giter Club home page Giter Club logo

Comments (4)

distantcam avatar distantcam commented on August 25, 2024

You shouldn't need to use a Uri - just use the name directly when getting
the resource stream.

On Friday, February 21, 2014, Xavier Guzman [email protected]
wrote:

I am attemping to access one of the dll's that costura added to my wpf
app's resources.
However, despite the name being in the list provided by
Assembly.GetManifestResourceNames() I always get the exception that no
resource could be found.

This is the name I am trying to use:

String assemblyResourceName = String.Format( "costura.{0}.zip",
dllName.ToLower() )
Application.GetResourceStream(new Uri("pack://application:,,,/" +
assemblyResourceName))

The resource is there (according to Assembly.GetManifestResourceNames()),
just can't retrieve it. Anything else i need to do?

Reply to this email directly or view it on GitHubhttps://github.com//issues/54
.

from costura.

xaguzman avatar xaguzman commented on August 25, 2024

There doesnt seem to be any overload to just provide a String for the getresourcestream method, it requires a Uri ( at least in net 4, not idea if net 45 changed this)

from costura.

distantcam avatar distantcam commented on August 25, 2024

Ah! You should use GetManifestResourceStream not GetResourceStream.
GetResourceStream is for loading a ResourceDictionary for Xaml.

On Friday, February 21, 2014, Xavier Guzman [email protected]
wrote:

There doesnt seem to be any overload to just provide a String for the
getresourcestream method, it requires a Uri ( at least in net 4, not idea
if net 45 changed this)

Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-35689580
.

from costura.

xaguzman avatar xaguzman commented on August 25, 2024

that did it!

thanks a lot !

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.