Giter Site home page Giter Site logo

resourcer's Introduction

AppVeyor Chat on Gitter NuGet Status Patrons on Open Collective

Extensible tool for weaving .net assemblies

Manipulating the IL of an assembly as part of a build requires a significant amount of plumbing code. This plumbing code involves knowledge of both the MSBuild and Visual Studio APIs. Fody attempts to eliminate that plumbing code through an extensible add-in model.

This is the codebase of core Fody engine. For more information on the larger Fody project see https://github.com/Fody/Home.

See Milestones for release notes.

Already a Patron? skip past this section

Community backed

Fody requires significant effort to maintain. As such it relies on financial support to ensure its long term viability.

It is expected that all developers using Fody become a Patron on OpenCollective.

See Licensing/Patron FAQ for more information.

Gold Sponsors

Support this project by becoming a Gold Sponsor. A large company logo will be added here with a link to your website.

PostSharp

Silver Sponsors

Support this project by becoming a Silver Sponsor. A medium company logo will be added here with a link to your website.

G-Research Particular Software

Bronze Sponsors

Support this project by becoming a Bronze Sponsor. The company avatar will show up here with a link to your OpenCollective Profile.

Patrons and sponsors

Thanks to all the backers and sponsors! Support this project by becoming a patron.

Documentation and Further Learning

Contributors

This project exists thanks to all the people who contribute.

resourcer's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar simoncropp avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

resourcer's Issues

AsImage

Right now when we want to get embedded image from resources we must do:

pictureBox1.Image = Image.FromStream(Resource.AsStream("Image.png"));

Can method Resource.AsImage("Image.png") be added? Or can this be done by extension method?

Cannot find System.IO

Hi

We've been getting the above message from FodyIsolated when using Resources.

Here's the relevant message:

    Error   50  Fody/Resourcer: An unhandled exception occurred:
Exception:
Can not find 'System.IO, Culture=neutral, PublicKeyToken=null'.
Tried:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.DataSetExtensions.dll
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.dll
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.dll
[...] more dlls
StackTrace:
   at InnerWeaver.TryToReadFromDirs(AssemblyNameReference assemblyNameReference, ReaderParameters parameters) in c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\AssemblyResolver.cs:line 72
   at InnerWeaver.Resolve(AssemblyNameReference assemblyNameReference, ReaderParameters parameters) in c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\AssemblyResolver.cs:line 52
   at InnerWeaver.Resolve(AssemblyNameReference assemblyNameReference) in c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\AssemblyResolver.cs:line 36
   at InnerWeaver.Resolve(String fullName) in c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\AssemblyResolver.cs:line 85
   at ModuleWeaver.FindCoreReferences() in c:\TeamCity\buildAgent\work\ccaab0b1f00f610b\Fody\ReferenceFinder.cs:line 12
   at ModuleWeaver.Execute() in c:\TeamCity\buildAgent\work\ccaab0b1f00f610b\Fody\ModuleWeaver.cs:line 19
   at lambda_method(Closure , Object )
   at InnerWeaver.Execute() in c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\InnerWeaver.cs:line 51
Source:
FodyIsolated
TargetSite:
Mono.Cecil.AssemblyDefinition TryToReadFromDirs(Mono.Cecil.AssemblyNameReference, Mono.Cecil.ReaderParameters)

There doesn't seem to be any reference missing. Reourcer works just fine in other projects in our solutions. Where do you think the problem is?

Fody.Resourcer Error : Fody: Can only be used on string literals

Hi,
While compiling my solution, I'm getting an error "Fody: Can only be used on string literals"
Could you please help me on this?

I have below entries in my package.config and FodyWeavers.xml file:
Package.config

  <package id="Fody" version="2.2.1.0" targetFramework="net462" developmentDependency="true" />
  <package id="Resourcer.Fody" version="1.6.1.0" targetFramework="net462" developmentDependency="true" />

FodyWeavers.xml

<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
  <Resourcer/>
</Weavers>

Errors for not found resources

I've noticed that every time there are some unresolved resources used with Resourcer only error one, presumably the first encountered, is reported.

It would be nice to have all missing resources output into Error window during build.

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.