.NET Framework Bookmark and Share   
 index > MSBuild > Building (without MSBuild) issue
 

Building (without MSBuild) issue

Not sure I am in the right forum, but here it goes...

We have two projects: a web service project, a CAB application projet. The Web service project contains mostly data acces WS form Oracle. The CAB provides UI interface elements, using proxies to the WS projet for data access. Both the WS assemblies and the CAB assemblies are used (as services) by a third application. In the third application binary folder we have copies during development the assemblies we know we need and all tests are fine.

We are trying to automate the "building" of the assemblies we need by the third application (in Delphi 5). So we created a VS2008 project which contains all the reference (to WS and CAB) we need to build the code used by the third application. There's about a dozen assemblies in the project. But when we build the project we end up with about a hundred assemblies in the \bin\Release folder, most of which we know we dont need. We would like to understand how why so many are generated, and if there is a way to "buid" only the assemblies we *realy* need.

Guy.Harel

Hi Harel,

I want to clarify several questions:

1. What projects are included in VS 2008 solution? Only the WS and CAB projects?
2. Do WS and CAB projects reference other projects and DLLs?
3. What are the DLLs in the output folder? What's relationships between them and WS and CAB projects?

If there are many projects within one solution, you can choose only compile what you need.
In Visual Studio, open menu Build / Configuration Manager / in the build column uncheck all projects don't need to build.

If there are many projects and DLLs are referenced by WS and CAB projects, they are copied to output path because when they are needed when your program runs. You can consider to register them to GAC to to many DLLs in output folder.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun
Here is some clarification (the class and dll names are fictious):

Project DvModule contains class:
DvModule.cs

The class makes:
using MS.FORM.Model.RequestParams;

So in the c# project DvModule, there is a reference to
MS.FORM.dll

This build. In my other application, if I copie the MS.FORM.dll directly and uses it. It works.

However if I build the C# project, and examine the \bin directlry, I can see that the linker detected a class in MS.FORM.dll making:
using MS.MC.Model.RequestParams;

and therefore output in the \bin directory the following dll. Although its not in the reference of my projet.
MS.MClinic.MC.dll

There is also a file called "ResolveReferenceAssembly.cache", which seems to indicate that a reference resolution process is responsible for this not-reference DLL to be copied.

However, if I do NOT copy this second DLL in my other application, everthing works, perhaps because no execution path every crosses a location where the extra DLL would be needed.

So there is a dependency for this DLL, but I do not really uses it in my application. So is there a way to find out which dll I REALLY need?
Guy.Harel

If my understanding is correct, where there is only MS.FORM.dll in the bin folder, build is passed.
When MS.FORM.dlland MS.MClinic.MC.dll are both in the bin folder, you receive error.
What error message you got?

If MS.FORM.dll has a referenceof MS.MClinic.MC.dll, and you add MS.FORM.dll as project reference. It is normal that MS.MClinic.MC.dll to be copied into bin folder.

I need to know the error message to identify what problem here.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun

Hi,

Are you still working on this issue? Please let me know if you need any further assistance.

Thanks.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun

We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun

You can use google to search for other answers

Custom Search

More Threads

• Custom Task returns false, log shows Failed but Build is still Successful
• Problem to Build
• Can't figure out how to replace elements in the EmbeddedResource item group in MSBuild 2.0
• MSBuild unable to compile a project in a solution file, if project name contain dot "."
• Custom Task exception handling guidelines
• Output to different folders
• MsBuild Task and References
• MSBuild Does Not Detect Changes in Precompiled Headers
• Visual Studio 2005 won't build after I've installed VS Orcas/.net 3.5
• MSBuild Bootstrapper / Integrate .net redist directly so no download is needed