Why Visual Studio does not support $(FrameworkDir) for C# programs?

V

Vagif Abilov

Hello,

We are setting up an envirnoment for daily builds, and there are a few
things in VS.NET behaviour that makes it a bit complicated. One of them is
post-build events. If you have a .NET component that should be registered
with COM+ catalog, then Visual Studio includes a post-build event with a
call to REGSVCS.EXE. The problem is that the command generated by VS.NET is
quite ugly: it includes hard-coded path of .NET Framework where REGSVCS.EXE
resides. So if some developers install Windows in C:\WINDOWS, and others -
in C:\WINXP, it will not work.

There is a macro $(FrameworkDir) supported by Visual Studio, but it looks
like it's recognized only for C++ projects - C# projects don't reconize it.

So our choice now is to copy REGSVCS.EXE (or any other tool from .NET
Framework) to a directory that VS.NET can find. This does not look elegant,
but are there any better alternatives?

Best regards

Vagif Abilov
Oslo, Norway
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top