Viewing the actual C# build process

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Being a C++ developer, I'm not used to a build performing automagically. For instance, App.config automatically being renamed and placed in the bin\debug folder and project.en-US.resx resource files mysteriously producing satellite DLLs. Yeah this is convienent, but where in the project/IDE is this defined as 'build steps'? How can I view the actual makefile that the VS.NET IDE uses to build the files in a project? Why doesn't the IDE produce any compile output (like C/C++ build.log) without going to the command line (/bugreport)? Is there any way to add the /bugreport to the IDE builds?? Any insight would be great. And Microsoft, this would be nice to expose some of this to users like me

SteveB, MCSD
 
Hi SteveB,

We have viewed your post, we will spend some time on it, and will reply to
you ASAP.

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hello Steve,

Thanks a lot for your feedback! As I understand, the problem you are facing
is that Visual Studio .NET IDE does not generate a build log file for C#
project. Please correct me if there is any misudnerstanding.

As you know, the build process is sophiscated for C++ project because it
need to compile each source file, generate corresponding object files, and
link them together. While the build of other projects say, Visual Basic
.NET, Visual C#, are much simpler. I believe that may be the reason why VS
.NET IDE does not save the build output to a log file, and we generally
view the Build Output for detailed build information. I'd like to share
more information with you:

1. .resx file can be generated by Resgen.exe tool:

Resource File Generator (Resgen.exe)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm
l/cpgrfresourcefilegeneratorutilityresgenexe.asp

2. >> How can I view the actual makefile that the VS.NET IDE uses to build
the files in a project?

There is no makefile for Visual C# projects, we can view the options for
csc.exe by selecting the menu "Project" -> "Properties", going to
"Configuration Properties" -> "Build".

Does this anwer your questions?

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
More specifically, I was looking for the build rules that the IDE uses when building a C# project. For example, when a file named App.config is part of the C# project, it is automatically renamed and copied into the output directory. That is not part of the of projects settings. The same is for files named xxx.en-GB.resx, they are automatically complied into .resource files and then linked into .dlls. The analogy is the build rules in a nmake file, I feel I could get more out of the IDE if I could see all the build rules. I miss the hands on capability of building C/C++ projects and capturing the results

SteveB.
 
Hello Steve,

There is not export makefile facility in the vs.net or C#. Instead they
are replaced by comand line build capability. .ie. You can build your
project without IDE by invoking devenv with the /build switch. For example:
devent my.sln /build debug will build the debug configuration for solution.

To look for the build rules that the IDE uses, we may use some third party
tools. If you were willing to use Nant (http://nant.sourceforge.net/), you
could use the program below to transform the .sln file into the .build file
used by Nant.

Hope that helps.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

This response contains a reference to a third-party World Wide Web site.
Microsoft is providing this information as a convenience to you. Microsoft
does not control these sites and has not tested any software or information
found on these sites; therefore, Microsoft cannot make any representations
regarding the quality, safety, or suitability of any software or
information found there. There are inherent dangers in the use of any
software found on the Internet, and Microsoft cautions you to make sure
that you completely understand the risk before retrieving any software from
the Internet.
 
Hi Steve,

You are welcome.

Thanks for participating the community.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top