添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I have installed Microsoft .NET Framework 1.1 in my laptop. I want to build an .exe file for my VB.NET application sample.vb .

i tried to build an .EXE using visual basic compiler(vbc) then i changed my command prompt path to C:\Windows\Microsoft.NET\Framework\v1.1.4322 and executed following command

  vbc /r:System.dll /t:exe "D:\sample.vb"

i got the output as below:

Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
vbc : Command line error BC2012 : can't open 'sample.vb' for writing

i don't know why it is giving me the command line error BC2012 error and what am i missing. i have checked the vbc and system.dll files in the C:\Windows\Microsoft.NET\Framework\v1.1.4322 directory, they are existing.

Any one please help me to build an .EXE to target .NET version 1.1

This is usually the error you get when you try to build a project that is already running. Do you have a startup script launching the application by any chance? – krowe Mar 20, 2014 at 6:42 Man you are lucky. You run an OS that can do that old stuff. Ouch. What interest do you have in something that ancient -there is nothing to be learned from .NET 1.1 these days. – TomTom Mar 20, 2014 at 6:52 The copyright is funny, an Oracle product might get in the way :) Best to use /out explicitly perhaps. – Hans Passant Mar 20, 2014 at 9:02

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.