Hi
I'm modifing a .target file for building .Net 1.0 & .Net 1.1 within VS. As neither versions of csc support the /keycontainer command-line option, I'm trying to inject a target before the build that will check that and emmit a more meaningfull message.
I've tryed both this:
<PropertyGroup>
<CompileDependsOn>CheckUnsupportedFeatures;$(CompileDependsOnOn)</CompileDependsOn>
</PropertyGroup>-->
<Target Name="CheckUnsupportedFeatures" Condition=" '$(Platform)' == '.NET 1.0' Or '$(Platform)' == '.NET 1.1' ">
<Error Condition=" '$(SignAssembly)' == 'true' "
Text="The $(Platform) platform doesn't support strong-name signing within the IDE. Please use the AssemblyKeyFileAttribute instead"/>
</Target>
and this:
<Target Name="BeforeBuild">
<Error Condition=" '$(SignAssembly)' == 'true' And ('$(Platform)' == '.NET 1.0' Or '$(Platform)' == '.NET 1.1') "
Text="The $(Platform) platform doesn't support strong-name signing within the IDE. Please use the AssemblyKeyFileAttribute instead"/>
</Target>
but neither of them work. My target isn't called.
Anyone can help
Regards,
Gustavo Guerra

Injecting a target before the build
Fast Eddie
Never mind that, dumb mistake, I had CheckUnsupportedFeatures;$(CompileDependsOnOn) instead of CheckUnsupportedFeatures;$(CompileDependsOn).
Thanks for your help
Bhupal
Please let me know if this works.
KAUAIFINN
Can you send us the diagnostic log out put of your build (msbuild /v:diag)
Thanks,
Jay Shrestha
(Jaysh@microsoft.com)
Dataminer101
Newbie71
But when the condition is false, I get an error saying it can't copy obj\Debug\assembly.exe to bin\Debug\assembly because the file in obj doesn't exists.
I've sent the new log to you