Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basing new Solution on Old
Message
De
11/09/2015 15:05:16
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
10/09/2015 13:22:46
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
OS:
Windows 8.1
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01624440
Message ID:
01624532
Vues:
45
>>>Hi,
>>>
>>>I am trying to copy a solution I have working and make some changes to it for a new project. When I do this and change the namespace and AssemblyInfo to refer to my new project's name I get an error:
>>>
>>>The type or namespace name 'DbApplyChangeFailedEventArgs' could not be found (are you missing a using directive or an assembly reference?) D:\Development\VS2010\CManSync\CManSync\Program.cs 120 62 CManSync
>>>
>>>The reference is to the Microsoft.Synchornization.Data.dll which is already referenced in the project.
>>
>>Maybe the path to the dll was relative. Simplest just to remove and re-add the reference.
>>
>
>That didn't have any effect.
>
>>>If I just copy the old project to a new folder and leave everything named the same it works fine except the exe generated is named incorrectly.
>>
>>The exe name is tied to the assembly name so you could just rename the exe post-build. But it's probably not a good idea to use the same assembly name for two different code bases anyway.
>>
>
>I think that I had renamed the namespace in my program, but not on the Project Properties. I seem to have it working now, thanks.

Changing the namespace in Project properties is for any added items. If you have Resharper or another refactor tool, you would likely have a refactor/ adjust namespaces right click menu at the project in Solution Explorer. Using this will adjust all the namespaces in the code files to what you have set in Project Properties.
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform