Google Groepen ondersteunt geen nieuwe Usenet-berichten of -abonnementen meer. Historische content blijft zichtbaar.

Command Line Compile

1 weergave
Naar het eerste ongelezen bericht

Mark Dykun

ongelezen,
11 apr 2003, 15:12:2511-04-2003
aan
Hi All,

Is it possible to do a command line compile and possibly a deploy.

Mark


Alex Feinman

ongelezen,
11 apr 2003, 18:13:1511-04-2003
aan
If you run Visual Studio.NET 2003\Common7\IDE\devenv /?
you get this help info:
 
Usage:
devenv  [solutionfile | projectfile | anyfile.ext]  [switches]
 
You can invoke devenv with a first argument to specify a solution file or
project file.  You can also invoke devenv with a first argument that is any
other kind of file that you just want to open in an editor.  When you supply a
project file, the IDE opens it in the context of a solution by looking for a
.sln file with the same base name as the project file in the same
directory as the project file.  If no such .sln file exists, then the IDE
looks for a single .sln file that references the project.  If no such single
.sln file exists, then the IDE creates an unsaved solution with a default .sln
file name that has the same base name as the project file.
 
Command line builds:
devenv solutionfile.sln  /build solutionconfig [ /project projectnameorfile [ /projectconfig name ] ]
 
Available command line switches:
 
/build build the specified solution configuration
/project specifies the project to build instead of solution must specify /build to use /project
/projectconfig specifies project configuration to build must specify /project to use /projectconfig
/out write build output to specified file
/rebuild like /build but forces a clean first
/clean clean up build outputs
/deploy build the specified solution configuration and then deploy it
/run run the specified solution configuration
/runexit run the specified solution configuration and then terminate
/command executes the specified internal command line after startup
/mditabs use tabbed documents interface
/mdi use MDI interface
/fn use specified font name
/fs  use specified font size
/LCID use specified language ID
/noVSIP disables VSIP developers license key for VSIP testing
/safemode only default environment and services load for stability
/resetskippkgs allow VsPackages once flagged for loading failures to load again
/migratesettings migrate some user settings from another version
 
Product-specific switches:
 
/debugexe Open the specified executable to be debugged. The remainder of the command line is passed to this executable as its arguments.
/useenv Use PATH, INCLUDE, LIBPATH, and LIB environment variables instead of IDE paths for VC++ builds.
 
To attach the debugger from the command line, use:
 vs7jit.exe -p <pid>
Consequently what you need is
 
devenv /deploy release "c:\MySolutions\Visual Studio Projects\MySolution\MySolution.sln"
See also the online help index - type "devenv"
 
HTH
 

--
Alex Feinman
MVP Windows Media Center
 
 

Lloyd Dupont

ongelezen,
13 apr 2003, 21:12:4813-04-2003
aan
why isn't a csc /out:myapp.exe /recurse:*.cs possible ?
I've read that .NET executable are portable across platform and that I should be able to simply copy an exe to my PocketPC, provided it use only the compact framework compatible class ...
 
I'm particularly puzzled, because I tried and it didn't work ....
I have the feeling that this 'portability' is marketing lies ....

Chris Tacke, eMVP

ongelezen,
13 apr 2003, 23:17:5113-04-2003
aan
Binaries compiled against the desktop framework are not retargetable, so unless you choose to use the CF binaries, it won't run on a CF device.  CF binaries are, however, retargetable and will run on the PC.
 
-Chris
 
"Lloyd Dupont" <ll...@galador.net> wrote in message news:#ITSTKiA...@TK2MSFTNGP12.phx.gbl...

Alex Feinman

ongelezen,
14 apr 2003, 00:34:2414-04-2003
aan
Since CF is a subset of the full framework, binaries compiled for CF will (mostly) run on the desktop, but not the other way around. Keep in mind that even retargetable binaries will throw an exception if you step inside a function that refers to a missing assembly, such as SqlServerCE. This means that if you have a method:
void OpenDB(strng connStr)
{
    if ( Environment.OSVersion == OSVErsion.WinCE )
    {
        SqlCeConnection conn = new SqlCeConnection(connStr);
    }
    else
    {
        SqlConnection conn = new SqlConnection (connStr );
    }
}
 
it will throw an exeption because execution engine will try to resolve all externals when stepping into a function.
"Lloyd Dupont" <ll...@galador.net> wrote in message news:#ITSTKiA...@TK2MSFTNGP12.phx.gbl...

Lloyd Dupont

ongelezen,
14 apr 2003, 01:07:4914-04-2003
aan
oh, I see...
 
Now there is a few problems.
 
1st: I don't have the CF binaries, and were not able to find them ..
I mean, I found the Compact Framework redistributable but it install nothing on my computer ...
where could I finf it ?
 
2nd:
I guess the answer is (unfortunately) I should buy VS.NET 2003. well the problem is I don't feel like spend 1000$ for it, while I don't even have a PocketPC myself.
my company have, but are not very likely to do it either (they are more java minded) how could I build a demo for them ? (my purpose is to convice them !)
let's imagine I'm ready to invest from my own pocket a small amount to do that, if I buy VC#.NET 2003 (much cheaper than complete VS.NET) would I have the compact framework with it ?
 

Alex Feinman

ongelezen,
14 apr 2003, 01:13:1714-04-2003
aan
1) You have answered it yourself in 2) - you need an appropriate SKU of Visual Studio 2003
2) VS.NET 2003 comes with an emulator which can be used to develop a prototype or a demo application. I'm not sure what do you mean by saying "VC#.NET 2003 (much cheaper than complete VS.NET) ". VS.NET 2003 Enterprise is not cheaper and it is also full product. Perhaps you meant upgrade. In that case yes, it will be significantly cheaper
"Lloyd Dupont" <ll...@galador.net> wrote in message news:#ZBhoNkA...@TK2MSFTNGP11.phx.gbl...

developer

ongelezen,
14 apr 2003, 02:19:0214-04-2003
aan
 
Now you can use "csc.exe /noconfig ...", and reference the assemblies you need with full path from "C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE" with the /r: compiler flag.
 
"Lloyd Dupont" <ll...@galador.net> wrote in message news:#ITSTKiA...@TK2MSFTNGP12.phx.gbl...

Lloyd Dupont

ongelezen,
14 apr 2003, 22:45:4514-04-2003
aan
I finally understand the problem.
I don't have VS.NET, I build using standart library and hoped to make it
work on PocketPC.

I guess I can't, so now I have an other problem.
I want to have a .NET demo on my PocketPC to show my boss (I'm kind of
trying to convince him to go .NET), could you give some URL where I could
download some .NET Compact demo ?

IF there is one which do some remoting with the server code (so I could
recompile and put whatever server code I want) that would be cool ...

developer

ongelezen,
16 apr 2003, 03:28:3016-04-2003
aan
Not sure, but I believe you actually can build for CF without having VS.Net installed. If you install the Compact Fraemwork SDK, I think it installs into "C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE". Try it at least.
 
If I remember correctly remoting is not supported in CF.
 
Some useful starting points where you can find samples:
 
 
"Lloyd Dupont" <ll...@galador.net> wrote in message news:OBbv5ivA...@TK2MSFTNGP10.phx.gbl...

Tim Bartle

ongelezen,
16 apr 2003, 09:19:5116-04-2003
aan
I think Lloyd is talking about the single language release of C#, which is MUCH cheaper than Visual Studio .NET in any guise, however I believe that the device support (Compact Framework) will not be included in the single language C# or VB.NET 2003
 

Lloyd Dupont

ongelezen,
16 apr 2003, 20:56:0616-04-2003
aan
yes, I was speaking about that.
sad the compact framework is only in the full version ..

Gordon Moore

ongelezen,
27 apr 2003, 17:01:0527-04-2003
aan
O.K. Where are we upto?

In order to use .net compact edition do I need visual studio 2003 or
not?

If I don't, what do I have to do to create programs and install them
on my pc?
Let's have the hello world demo!

Or am I right in assuming that Microsoft have seen that other people
have "hijacked" their cash cow e.g sharp develop (more power to them)
and have decided to cut them out?

It wouldn't be so bad, but I only want to develop a few apps for
myself, but there is no way I'm going to spend £250 for a copy of VS
studio 2003 professional.

Gordon Moore


"developer" <swedish develo...@XXXhotmail.com removeXXX> wrote in message news:<#UTSbn#ADHA...@TK2MSFTNGP12.phx.gbl>...


> Not sure, but I believe you actually can build for CF without having
> VS.Net installed. If you install the Compact Fraemwork SDK, I think it
> installs into "C:\Program Files\Microsoft Visual Studio .NET
> 2003\CompactFrameworkSDK\v1.0.5000\Windows CE". Try it at least.
>
> If I remember correctly remoting is not supported in CF.
>
> Some useful starting points where you can find samples:
>
> http://smartdevices.microsoftdev.com/Learn/Code+Samples/default.aspx
> http://www.gotdotnet.com/community/usersamples/Default.aspx?ProductDropDo
> wnList=.NET+Compact+Framework&SortDirection=Desc&SortColumnName=Cre
> ationDate
>
> "Lloyd Dupont" <ll...@galador.net> wrote in message
> news:OBbv5ivA...@TK2MSFTNGP10.phx.gbl...
> I finally understand the problem.
> I don't have VS.NET, I build using standart library and hoped to make
> it
> work on PocketPC.
>
> I guess I can't, so now I have an other problem.
> I want to have a .NET demo on my PocketPC to show my boss (I'm kind of
> trying to convince him to go .NET), could you give some URL where I
> could
> download some .NET Compact demo ?
>
> IF there is one which do some remoting with the server code (so I
> could
> recompile and put whatever server code I want) that would be cool ...
>

> "developer" <swedish develo...@XXXhotmail.com removeXXX> wrote in

> message news:eGLtM3kA...@TK2MSFTNGP10.phx.gbl...
> Make sure you have .Net Compact Framework 1.0 redistributable
> installed
> (http://www.microsoft.com/downloads/details.aspx?familyid=78974b4d-1bc6
> -4f29-8bd5-5ad5a37c7408&languageid=f49e8428-7071-4979-8a67-3cffcb0c2524
> &displaylang=en)
>
> Now you can use "csc.exe /noconfig ...", and reference the
> assemblies you need with full path from "C:\Program Files\Microsoft
> Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE" with
> the /r: compiler flag.
>
> "Lloyd Dupont" <ll...@galador.net> wrote in message
> news:#ITSTKiA...@TK2MSFTNGP12.phx.gbl...
> why isn't a csc /out:myapp.exe /recurse:*.cs possible ?
> I've read that .NET executable are portable across platform and
> that I should be able to simply copy an exe to my PocketPC, provided it
> use only the compact framework compatible class ...
>
> I'm particularly puzzled, because I tried and it didn't work ....
> I have the feeling that this 'portability' is marketing lies ....

> "Alex Feinman" <public ne...@alexfeinman.com> wrote in message

> --

Erv Walter

ongelezen,
27 apr 2003, 20:03:3127-04-2003
aan
Yes, You *have* to have Visual Studio 2003 Pro or higher to develop CF.NET
apps.

If you just want to develop a couple simple apps for yourself, Embedded
Visual Tools (eVB and eVC++) are still free, but you won't be developing in
.NET.


"Gordon Moore" <gordon...@yahoo.co.uk> wrote in message
news:b5da467d.0304...@posting.google.com...

Chris Tacke, eMVP

ongelezen,
27 apr 2003, 22:26:2127-04-2003
aan
You *must* have studio. For confirmation see this Chat session where I
asked about it spcifically:

http://msdn.microsoft.com/chats/embedded/embedded_041703.asp

-Chris


"Gordon Moore" <gordon...@yahoo.co.uk> wrote in message
news:b5da467d.0304...@posting.google.com...

0 nieuwe berichten