assemblies

Team Build 2010 - Third Party Assembly References not copying to output folder

戏子无情 提交于 2019-12-02 00:11:02
When I build a solution on my build server it generates a binaries folder and then later on copies these binaries to the final output folder. In my case some of the third party assemblies REFERENCES are correctly copied over while other 3rd part assemblies REFERENCES are not copied over. Take not that my solution projects do not directly reference the assemblies being copied over. This means that everything build fine. But when I run my program it doesn't start since the assemblies it's referencing can't in turn load their references. What process in the build determines what assemblies are

Getting file version info in the Compact Framework

旧街凉风 提交于 2019-12-02 00:05:30
问题 I have some code that needs to be able to find the version number of an assembly, given a string saying where it's located. I can't get this to work: Assembly assembly = Assembly.LoadFrom("\\Program Files\\Microsoft SQL Server Compact Edition\\v3.5\\sqlcecompact35.dll"); throws a System.IO.IOException: File or assembly name '\Program Files\Microsoft SQL Server Compact Edition\v3.5\sqlcecompact35.dll', or one of its dependencies, was not found. Yet the file does exist: FileInfo fileInfo = new

How to access namespace which is part of different project?

心不动则不痛 提交于 2019-12-01 23:25:03
问题 I have two C#.net projects project 1 and project 2 (names changed) in single solution. I am using Visual Studio 2005. I have added reference of project 2 in project 1 by right clicking and choosing 'Add Reference'. Both projects are of 'Application' project type not Class library type. I have some classes in project 2 which I want to access in project 1. After adding reference I tried to use import namespace of project 2 in project 1 but I guess its not available. Visual studio Intelisense is

The type 'xxx' is defined in an assembly that is not referenced

独自空忆成欢 提交于 2019-12-01 23:05:13
问题 I have been scouring the internet for an answer on this and could really use the help. I've already looked at other posts regarding this error and none of those answers helped me. The full error is, The type 'xxx' is defined in an assembly that is not referenced. You must add a reference to assembly 'xxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. The solution builds fine locally, but the error occurs when I trigger a build on the build server. Here's what I've done so far in an

ASP.NET Website's BIN directory and references

不羁岁月 提交于 2019-12-01 22:02:09
Imagine the following solution: Website ABC.com (not Web Application) BLL (business logic layer in a seperate assembly) DTO (dto objects in their own assembly) DAL (data access layer in it's own assembly as well). The BLL has a reference to the DAL. The BLL has a reference to the DTO layer. The Website project references the BLL. When one compiles the website project, the following DLLs will appear in the BIN directory: BLL.dll DTO.dll DAL.dll When one goes to preview the site, an error occurs about not having the necessary assembly references... Now if one right clicks on the website project,

ILMerge question

ぃ、小莉子 提交于 2019-12-01 21:54:40
I'm trying to merge multiple assemblies into one as my 'Proxy' assembly for a WCF service. Currently, users of the Proxy need to reference the assembly containing the data contracts, and also my domain assembly because of my inheritance schemes. I'd like to use ILMerge for this. In particular, the ILMerge-Tasks project looks promising, especially this line from their project home: ILMerge-Tasks Project Home: ...It even includes a post-build event that merges ILMerge and the task dll so that you can use the task without ILMerge.exe being present. This is precisely what i'd like to accomplish,

The type 'xxx' is defined in an assembly that is not referenced

自作多情 提交于 2019-12-01 21:42:34
I have been scouring the internet for an answer on this and could really use the help. I've already looked at other posts regarding this error and none of those answers helped me. The full error is, The type 'xxx' is defined in an assembly that is not referenced. You must add a reference to assembly 'xxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. The solution builds fine locally, but the error occurs when I trigger a build on the build server. Here's what I've done so far in an attempt to resolve this: Ensured all project references are correct(Had an Architect review it with me)

Getting file version info in the Compact Framework

扶醉桌前 提交于 2019-12-01 21:18:32
I have some code that needs to be able to find the version number of an assembly, given a string saying where it's located. I can't get this to work: Assembly assembly = Assembly.LoadFrom("\\Program Files\\Microsoft SQL Server Compact Edition\\v3.5\\sqlcecompact35.dll"); throws a System.IO.IOException: File or assembly name '\Program Files\Microsoft SQL Server Compact Edition\v3.5\sqlcecompact35.dll', or one of its dependencies, was not found. Yet the file does exist: FileInfo fileInfo = new FileInfo("\\Program Files\\Microsoft SQL Server Compact Edition\\v3.5\\sqlcecompact35.dll"); creates an

How to access namespace which is part of different project?

倖福魔咒の 提交于 2019-12-01 20:58:29
I have two C#.net projects project 1 and project 2 (names changed) in single solution. I am using Visual Studio 2005. I have added reference of project 2 in project 1 by right clicking and choosing 'Add Reference'. Both projects are of 'Application' project type not Class library type. I have some classes in project 2 which I want to access in project 1. After adding reference I tried to use import namespace of project 2 in project 1 but I guess its not available. Visual studio Intelisense is not showing me the desired namespace. Can anyone please suggest about how to access namespace and

Getting Runtime Assemblies in Silverlight 3

纵然是瞬间 提交于 2019-12-01 18:53:55
I am currently writing a framework dll which has an AssemblyHelper. This helper stores Runtime and UserAdded assemblies to easily instantiate new objects. The .NET part of the framework uses: AppDomain MyDomain = AppDomain.CurrentDomain; Assembly[] AssembliesLoaded = MyDomain.GetAssemblies(); _runtimeAssemblies = AssembliesLoaded; This gets me all the assemblies I need. But the problem is I can't use this with Silverlight and I have no idea what to use now. Currently I am using: Assembly[] AssembliesLoaded = {Assembly.GetCallingAssembly()}; But this only adds the Assembly of my framework and