msbuild error

C

csharpula csharp

Hello ,

I am activating the following command from the cmd:

MSBuild.exe /target:publish
/property:AssemblyOriginatorKeyFile="C:\Documents and
Settings\shteinga\myKey.snk"

And I am getting the following error :

error : A signing key is required in order to publish this project.
Publishi
ng from Visual Studio 2005 will automatically configure a signing key
for this
project.

But I created already a snk file using sn.exe. Why it is still no
working?

Thanks a lot!
 
C

csharpula csharp

No,it's not helping - still the same error although I created a key with
sn.exe and provided it to the msbuild still got the error : A signing
key is required in order to publish this project.
(This is the command :

C:\Documents and Settings\ZipTest>C:\WINDOWS\Microsoft.NET\Framework\v3
.5\MSBuild.exe /target:publish
/property:AssemblyOriginatorKeyFile="C:\Documents
and Settings\myKey.snk" /p:SignAssembly=true

}
Any other idea?

Thanks!
 
M

Morten Wennevik [C# MVP]

Hm,

What kind of application are you publishing?

Can you set the strong name key file using Visual Studio?

This may not be relevant, but /target:publish does not build the project and
if you change the UpdateUrl and PublishDir from what is specified in the
project file, you may need to build it first using /target:rebuild and the
new UpdateUrl/PublishDir
 

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