G
Guest
Hi everybody,
I've got a solution that has several dll projects and a website.
For the dll projects I've add a configuration 'debug - no code analysis'.
Now for the website I can't create custom configurations...
The fact that I can't create different configuration for running with code
analysis and without code analysis is irritating, but I could live with it.
the problem is this:
Because the web site is in configuration DEBUG it copies the dlls it depends
on from the DEBUG directory of the dll projects, EVEN if the projects are
configured as 'debug - no code analysis' during the solution build!
This means that if the changes I made to the dll projects since the last
time I compiled the debug configuration did not change the public interface
of the dlls (i.e. didn't change the functions the web site are using) then
the web site will compile and run using the OLD dlls and NOT the dlls I just
compiled!
If on the other hand the public interface of the dlls has changed, then I
will get strange errors that the web site can't find functions that DO exist
in the source code.
And the only way I can see to fix it is to recompile the solution in debug
mode...
And another thing:
Why is a failure to find a dll a warning and not an error?
I compile the web site, the web site tries to get a dll that was not
compiled because of the configuration mismatch.
I get a warning:
MSBUILD : warning MSB3021: Unable to copy file
"D:\BacSoft\Client\WebClientLogic\bin\Debug\WebClientLogic.dll" to
"D:\BacSoft\Client\WebClient\Bin\WebClientLogic.dll". Could not find file
'D:\BacSoft\Client\WebClientLogic\bin\Debug\WebClientLogic.dll'.
And then the compilation just goes on as usual...
(including the website deploy and the website setup projects afterwards).
This does not make sense to me.
Thanks,
Nadav
I've got a solution that has several dll projects and a website.
For the dll projects I've add a configuration 'debug - no code analysis'.
Now for the website I can't create custom configurations...
The fact that I can't create different configuration for running with code
analysis and without code analysis is irritating, but I could live with it.
the problem is this:
Because the web site is in configuration DEBUG it copies the dlls it depends
on from the DEBUG directory of the dll projects, EVEN if the projects are
configured as 'debug - no code analysis' during the solution build!
This means that if the changes I made to the dll projects since the last
time I compiled the debug configuration did not change the public interface
of the dlls (i.e. didn't change the functions the web site are using) then
the web site will compile and run using the OLD dlls and NOT the dlls I just
compiled!
If on the other hand the public interface of the dlls has changed, then I
will get strange errors that the web site can't find functions that DO exist
in the source code.
And the only way I can see to fix it is to recompile the solution in debug
mode...
And another thing:
Why is a failure to find a dll a warning and not an error?
I compile the web site, the web site tries to get a dll that was not
compiled because of the configuration mismatch.
I get a warning:
MSBUILD : warning MSB3021: Unable to copy file
"D:\BacSoft\Client\WebClientLogic\bin\Debug\WebClientLogic.dll" to
"D:\BacSoft\Client\WebClient\Bin\WebClientLogic.dll". Could not find file
'D:\BacSoft\Client\WebClientLogic\bin\Debug\WebClientLogic.dll'.
And then the compilation just goes on as usual...
(including the website deploy and the website setup projects afterwards).
This does not make sense to me.
Thanks,
Nadav