Re: How to share a .cs

From: Tim Wilson ("Tim)
Date: 03/02/05


Date: Wed, 2 Mar 2005 10:33:14 -0500


> The " link file" can't be used in web application is so inconvenient.
Agreed. I don't know exactly why this feature was left out of web projects,
other than what I stated before, but it's definitely a nice feature to have.
Your other option in this case is to just compile the shared functionality
into an assembly, class library, and reference this assembly in all projects
as needed.

-- 
Tim Wilson
.Net Compact Framework MVP
"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:uaJtR9wHFHA.2736@TK2MSFTNGP09.phx.gbl...
> Thank a lot!
> My project is a web application, so I can't find the "link file" item.
> But if I open a windows applicaiton, the "link file" appear.
> The " link file" can't be used in web application is so inconvenient.
>
>
>
> "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> 撰寫於郵件新聞
> :O8METYuHFHA.3928@TK2MSFTNGP09.phx.gbl...
> > After you select the appropriate cs file in the list, when you click on
> the
> > drop down arrow on the "Open" button you should see a small context menu
> > appear with the options "Open", "Open With...", and "Link File". If you
> > don't see the "Link File" option, here are a few questions.
> >
> > Are you creating a web application, by chance? I have read that this
> option
> > is not available through web projects due to it being viewed as a
security
> > issue.
> >
> > If you are not creating a web app, are you using VS.Net 2002 or 2003?
It's
> > possible, although I can't confirm this because I no longer have 2002
> > installed, that this feature is not in the 2002 product.
> >
> > -- 
> > Tim Wilson
> > .Net Compact Framework MVP
> >
> > "ad" <ad@wfes.tcc.edu.tw> wrote in message
> > news:uxA77YtHFHA.3196@TK2MSFTNGP15.phx.gbl...
> > > But when I click the drop down arrow on the "Open" button, there is no
> > "link
> > > file"  appear.
> > > If I right click the DM.cs, there a link item I can select, but the
file
> > is
> > > alwayse copy to the c:\Proj1
> > >
> > > Can I modified the RelPath = "DM.cs" in the .csproj file?
> > > How to modify it?
> > >
> > >
> > > "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM>
撰寫於郵件新聞
> > > :uE4ZH4sHFHA.3936@TK2MSFTNGP10.phx.gbl...
> > > > When you add the code file to the project make sure that you specify
> it
> > as
> > > a
> > > > "link file". So in the "Add Existing Item" dialog, after you select
> the
> > > > DM.cs file, select the drop down arrow on the "Open" button and then
> > > select
> > > > "Link File". The file will now appear in the Solution Explorer,
under
> > the
> > > > appropriate project, with a code file icon that looks like it has a
> > little
> > > > shortcut image over top of it.
> > > >
> > > > -- 
> > > > Tim Wilson
> > > > .Net Compact Framework MVP
> > > >
> > > > "ad" <ad@wfes.tcc.edu.tw> wrote in message
> > > > news:ezSxhvsHFHA.3208@TK2MSFTNGP10.phx.gbl...
> > > > > I have write a clss, say DM.cs, and I save it in a independent
> > directory
> > > > > like c:\MyUtil
> > > > >
> > > > > I have a new project in c:\proj1.
> > > > >
> > > > > When I use VS to add the existed c:\MyUtil\DM.cs to the new
project,
> > the
> > > > VS
> > > > > will copy DM.cs form c:\MyUtil
> > > > > to c:\proj1.
> > > > >
> > > > > How can I left the DM.cs in the independent  directory ?
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>