Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How and where do I find the .Net source file

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-08-2009
Member
 
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.

Reply With Quote
  #2  
Old 10-08-2009
Member
 
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.
Reply With Quote
  #3  
Old 10-08-2009
Member
 
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.
Reply With Quote
  #4  
Old 10-08-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How and where do I find the .Net source file"
Thread Thread Starter Forum Replies Last Post
Dead space 2 error while installation "Source file not found: (file destination)...Verify that file exists Ucchal Video Games 3 28-01-2011 06:26 AM
cannot delete file -- cannot read from source file or disk Amitgujaran Windows XP Support 3 11-11-2010 09:55 PM
Find all package dependencies for source install _Gentoo_Nile_ Operating Systems 3 29-10-2009 03:21 PM
How to find the source code of any program? Chandrakant81 Software Development 4 13-02-2009 08:54 PM
XP: Cannot delete file: Cannot read from the source file or disk. iexplorer0726 Operating Systems 0 10-09-2007 06:07 AM


All times are GMT +5.5. The time now is 10:51 PM.