The Artima Developer Community
Sponsored Link •

C# Answers Forum
help please!

1 reply on 1 page. Most recent reply: Apr 19, 2004 11:03 AM by Mike Swaim

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Moakofhi

Posts: 2
Nickname: dizzyha
Registered: Mar, 2004

help please! Posted: Mar 27, 2004 2:56 PM
Reply to this message Reply
Advertisement
Hello!

i'm new to this forum & C#. I got this code from some guy but I can't get through this error that I get when I build the solution:

The type or namespace name "Windows" does not exist in the class or namespace "System" (are you missing an assembly reference).

I also have this AssemblyInfo.cs file........I think I'm required to register the code but I really don't know what to do:

using System.Reflection;
using System.Runtime.CompilerServices;

//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Revision
// Build Number
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.*")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified - the assembly cannot be signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine.
// (*) If the key file and a key name attributes are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP - that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the file is installed into the CSP and used.
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]



What do you advice?


Mike Swaim

Posts: 13
Nickname: swami
Registered: Apr, 2004

Re: help please! Posted: Apr 19, 2004 11:03 AM
Reply to this message Reply
> Hello!
>
> i'm new to this forum & C#. I got this code from some guy
> but I can't get through this error that I get when I build
> the solution:
>
> The type or namespace name "Windows" does not exist in the
> class or namespace "System" (are you missing an assembly
> reference).
> What do you advice?

I'd assume that you have a line like
using System.Windows;
somewhere in your project. Remove it, and see what breaks. That should give you some idea of what you should be using instead.

Flat View: This topic has 1 reply on 1 page
Topic: Stack-based's Limitation Previous Topic   Next Topic Topic: yahoo messenger chat

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use