|
I create a setup project.
and it copy some file to the folder. if the file exist, I would like to backup it.
and will copy it back when uninstall.
how to do it?
thank you very much
chokchai chalermwattanatrai
|
|
|
|
|
Can anybody point me to a comprehensive list of all the Attributes build into the .NET Framework? Can anybody suggest a way that I can search the MSDN documentation for a comments on all the Attributes?
Because they are spread across so many namespaces, I find it difficult to get a good sense for all the Attributes out there. It's like you have to go at them from the context in which you're going to use them. I've read many articles on C# control design (here at CodeProject and elsewhere) that give me a glimpse of the properties that affect an object when viewed in the PropertyGrid, but that is just one small sub-set of the "built-in custom attributes".
What gives?
|
|
|
|
|
Default .NET attributes are in fact classes whose name is of the form ___Attribute . For instance [DllImport(...)] is managed by the DllImportAttribute class, in the System.Runtime.InteropServices namespace.
I am not aware of a flat listing of those attributes. However, you can use the * wildcard in MSDN to find all *Attribute classes.
|
|
|
|
|
Local MSDN: ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemattributeclasshierarchy.htm
MS MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemattributeclasshierarchy.asp?frame=true
|
|
|
|
|
|
Clickety police? Is this another bit of net lingo of which I am ignorant? Or are you talking about some kind of copyright violation for linking to a page within another site?
|
|
|
|
|
Clickety police is a funny name a lot of Cpians refer to when they make a url cliquable, with that top hat.
In fact, Chris has been handed a javascript code that automatically translates urls to full cliquable links, and it's expected to be used in the message board. But it isn't wired yet, obviously.
|
|
|
|
|
I am actually working on ASP. I wanted to learn/start with .NET. And the questions arises... where and how to start .net??
Any help...
I was born intelligent Education ruined me!.
|
|
|
|
|
asp.net[^].
Currently, the best ROI with .NET *is* ASP.NET
|
|
|
|
|
Thanks a LOT
I was born intelligent Education ruined me!.
|
|
|
|
|
OK, so what do I need to do, security wise, to allow this. I found that if you use the .net Wizards, you can manually add each assembly to the trusted assemblies collection, but I'd like to know how to do this via command line. Or, how do you get the .NET Setup Project created by Visual Studio to not include files, but rather, links to those files, and then have the setup program do the trusting to the users machine????
Thanks in advance.
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|
|
Take a look here:
MSDN Clickety[^]
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
Yup, figured it out about 5 minutes ago:
caspol -pp off -m -ag 1 -url "file://J:\Systems\Released\TimeLog.NET Beta\*" FullTrust -exclusive on -name "TimeLog.NET"
^^^ This thing's gross! ^^^
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|
|
I'm trying (in a nutshell) to generate the following code:
using System;
namespace Foo
{
namespace Bar
{
public class Class1
{
}
}
}
My problem is that I can't find a way to add the CodeNamespace object for the Bar namespace to the CodeNamespace object for the Foo namespace. None of the collections available through the properties on CodeNamespace allow another CodeNamespace. Any ideas?
erik
|
|
|
|
|
Unfortunately, it is not supported. Have a look at this article[^]. Unfortunately, current CodeDom implementation looks more like a fun stuff, it has too many limitations.
Вагиф Абилов
MCP (Visual C++)
Oslo, Norway
Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros.
Tomasz Sowinski
|
|
|
|
|
|
I know about this. However, what I'm really doing is generating source code and for asthetic reasons I want the 'using' statements and some banner comments outside the namespace which is used for the class, e.g.
using System;
using System.Xml;
namespace Bookstore.Model
{
public Class Author
{
The easiest way to achieve this would have been to nest the Bookstore.Model namespace into the default namespace, i.e. a namespace without a name, and add the commets and usings to that.
See what I mean?
|
|
|
|
|
|
Well I'm not quite sure what you mean but this defines a class called Foo.Bar.Class1 so maybe you can just have a namespace of Foo.Bar
|
|
|
|
|
Hi everybody,
I'm a beginner with C#.NET and I've a problem with a winform.
I can't undersatand why sometimes when I click the windows form close button
the event it's not handled.
I have to put a special button to close the form because the cross window
button doesn't work properly. No event.
Could you help me?
Thanks,
Carlos.
|
|
|
|
|
What would be the best way to do IPC between processes in .NET
There will be up to 200 exchanges per second required.
viva AMIGA
|
|
|
|
|
I want to run a program as a specified user. I've used
System.Diagnostics.Process.Open() befor but it hasn't any
feature to specify the user to run the process.
Please help me.
|
|
|
|
|
How do I "emit" code for the "Select Case" statement using CodeDom object? I am trying to generated code for the Select Case statement (in VB) and the Switch statement (in C#)..
Any ideas how to accomplish the above using CodeDom object?
Munish
|
|
|
|
|
|
Hi
I was wonder how these "access" Attributes (from Method/FieldInfo/etc) work.
If the class is marked Private and Family and Public, etc the result is Private as it seems that "overrides" all other access. What are the order that they get applied in and which access methods have "precedence" over the others.
EG: (type string)
Family FamORAssem Public MemberAccessMask Virtual HideBySig for Finalize()
Private Assembly FamORAssem MemberAccessMask HideBySig for InternalGetType()
FamANDAssem Assembly Family FamORAssem Public MemberAccessMask HideBySig for GetType()
See my confusion?
Also, calling this gives me several duplicate methods:
myobject.GetType().GetMethods(
BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static);
I have tried passing BindingFlags.DeclaredOnly as well with the same effect. Any ideas? [edit] my bad, was calling it a few times "unknowningly" [edit]
WebBoxes - Yet another collapsable control, but it relies on a "graphics server" for dynamic pretty rounded corners, cool arrows and unlimited font support.
|
|
|
|