Results 1 to 4 of 4

Thread: How and where do I find the .Net source file

  1. #1
    Join Date
    Apr 2009
    Posts
    65

    How and where do I find the .Net source file

    How and where do i find the source file for the downloaded .net application, this is to reference the assembly of the web application, because when i try to find out the source file i found that ASP.Net does some recompilation processing on the resource files and compiles them into an assembly called App_GlobalResources, which I think never be created by the normal build process so the functional tests fail because that can't find the App_GlobalResources assembly to look the string up from.

  2. #2
    Join Date
    Oct 2008
    Posts
    180

    Re: How and where do I find the .Net source file

    Resource files (.resx, .resource) can be compiled into an assembly or put into their own assembly as a satellite resource. Its ugly because I already have a reference to the webproject (which I can probably remove now...) and I don't like mixing source files between projects. When compiled into an app, youíre stuck with what you have at compile time, but thatís not a problem if youíre simply wrapping up something that wonít change between builds.

  3. #3
    Join Date
    Feb 2006
    Posts
    185

    Re: How and where do I find the .Net source file

    Have you considered moving your GlobalResources into a separate assembly and then referencing that from both your web project and your test project? You can add a resource file via the "Add ItemÖ" item in the Solution Explorer. When you open the file, youíre presented with VS.NETís XML editor, as the resx format is a simple XML document. The columns presented are Name, Value, Comment, Type and MimeType. When using strings, you only need to be concerned with the Name and Value columns.

  4. #4
    Join Date
    Oct 2008
    Posts
    127

    Re: How and where do I find the .Net source file

    WinResourceFileCreator will create a resource file (either resx or resources) with the files that you choose. Currently it only creates resource files, it will not load them and let you edit the contents. The ResourceManager class offers the simplest way. The most useful constructor takes an assembly and the root name to pick the resources from. The problem is the ASP.Net does some precomilation processing on the resource files and compiles them into an assembly called App_GlobalResources.

Similar Threads

  1. Replies: 3
    Last Post: 28-01-2011, 05:26 AM
  2. cannot delete file -- cannot read from source file or disk
    By Amitgujaran in forum Windows XP Support
    Replies: 3
    Last Post: 11-11-2010, 08:55 PM
  3. Find all package dependencies for source install
    By _Gentoo_Nile_ in forum Operating Systems
    Replies: 3
    Last Post: 29-10-2009, 02:21 PM
  4. How to find the source code of any program?
    By Chandrakant81 in forum Software Development
    Replies: 4
    Last Post: 13-02-2009, 07:54 PM
  5. XP: Cannot delete file: Cannot read from the source file or disk.
    By iexplorer0726 in forum Operating Systems
    Replies: 0
    Last Post: 10-09-2007, 05:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •