Comments (4)
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.
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.
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.
that did it!
thanks a lot !
from costura.
Related Issues (20)
- win32 dll [DllImport("helloword.dll")] OR [DllImport("helloword.so")] HOT 1
- Files not merging - "Package reference missing 'compile' part in IncludeAssets" HOT 2
- Once i install Costura.Fody to my project and then build.. windows defender catches my app.exe as a Trojan:Script/Wacatac.B!ml HOT 1
- An MSBuild Error that tells you nothing useful HOT 3
- Invalid attempt to merge ffmpeg DLL into C# exe,Has anyone tried that? HOT 1
- Unable to switch languages according to regional settings HOT 2
- Some users have crashes running on windows 7. HOT 1
- FileNotFoundException when using referenced assembly in x64 project HOT 4
- AutoCAD plug-in packaging is not supported HOT 2
- Language Resources Not Being Included HOT 4
- problem virus all virtualtotal. HOT 1
- The type initializer for 'Microsoft.Data.SqlClient.TdsParser' threw an exception HOT 12
- NET Framework 4.8 project: the bin\Release contains37 files. HOT 1
- i think <Costura IncludeDebugSymbols='false' /> disables the disable cleanup HOT 3
- Can't locate embedded satellite assembly HOT 5
- Fody.Costura on multi-target (.NET7 + .NET Framework 4.8.1) Class Library - Failure to Embed Dependencies HOT 4
- Make Unmanaged32Assemblies and Unmanaged64Assemblies works for Linux and macOS executables HOT 1
- Migrate to netStandart HOT 3
- I used Costura.Fody in my project to package it as a class library for others to call HOT 2
- Can support for C++/CLI be added? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from costura.