Hi
Here is my solution setup and problem description
1) projects
- VS.NET 2005 web site (Mediaresearch.Sworm.Web)
- C# Class library project containing code and resources (Mediaresearch.Sworm.BLL) This project is referenced by web site using project reference. Project contains one default resource file and one resource for EN neutral culture.
- Web deployment project
2) Contet of Bin folder of web site is NOT in source control. Web site is referencing only projects in the same solution. This is because I do not want the files, which are changing frequently to be in SVN.
3) Previous point is important because it means that Bin directory of Web Site doesn't containt folder with name "en" (remember, we are in web site project so neither local nor global resources are compiled- without using WDP)
4) When i build my web site,satellite assembly is created for my library project in "en" subfolder of its bin folder. But this dll is NOT copied to web site bin folder ! VS.NET shows following message:
Cannot copy assembly 'Mediaresearch.Sworm.BLL.resources.dll' to file 'd:\Pool\SWORM\src\Mediaresearch.Sworm.Web\Bin\en\Mediaresearch.Sworm.BLL.resources.dll'. Unable to add 'd:\Pool\SWORM\src\Mediaresearch.Sworm.BLL\obj\Debug\en\Mediaresearch.Sworm.BLL.resources.dll' to the Web. Unable to add file 'Bin\en\Mediaresearch.Sworm.BLL.resources.dll'. The system cannot find the path specified.
5) When i build WDP project (which in turn builds web site), satellite assembly is copied directly to web site bin folder and to precompiled sites Bin folder insted of its "en" subfolder. This is strange and not very useful.
6) When i manualy create "en" subfolder inside web site bin folder, vs.net web site build works like a charm - assembly is copied to "en" subfolder and nowhere else. WDP build from VS.NET in this case again copy satellite assembly to "en" folder and directly to Bin folder of web site and precompiled site
BUT WDP build from command line (msbuild xxx.wdproj) still do not create\copy satellite assembly to "en" folder of site\precompiled site !
So there are IMHO at least 2 problems:
A) VS.NET is not able to create "culture directories" in the web site Bin folder and compile web site corectly when it is referencing class library containing multi-language resources. After manualy creating "culture directory" inside web site bin folder, web site builds ok.
B) WDP can not handle build of Web site project referencing class library containing multi-language resources when run from command line. It is copying library's satelite assemblies directly to Bin folder of source and precompiled site... Problem is probably in ResolveAssemblyReferences target.
Has anybody seen this issue? What do you think ?
Thanx, Liwoj