I duplicated my project in Visual Studio as follows:
1 ° I entered the file system and gave CTRL C + V
to the folder SiteTeste
which is the project folder.
2 ° I renamed the folder to Siteteste2
and then renamed the files .csproj
, .csproj.user
and .user
it looks like this:
3°ChangedthefileGlobal.asax
thus:
<%@ApplicationCodebehind="Global.asax.cs" Inherits="Siteteste2.MvcApplication" Language="C#" %>
3 ° I added the project through Visual Studio, and it was added inside the file .sln
thus:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2027
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SiteTeste", "SiteTeste\SiteTeste.csproj", "{0DAAF99F-D5F0-47C7-B1CC-E042F0C5C3AC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Siteteste2", "Siteteste2\Siteteste2.csproj", "{8F4DD610-3480-4B5D-AB6C-1538D4182C43}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0DAAF99F-D5F0-47C7-B1CC-E042F0C5C3AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0DAAF99F-D5F0-47C7-B1CC-E042F0C5C3AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0DAAF99F-D5F0-47C7-B1CC-E042F0C5C3AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0DAAF99F-D5F0-47C7-B1CC-E042F0C5C3AC}.Release|Any CPU.Build.0 = Release|Any CPU
{8F4DD610-3480-4B5D-AB6C-1538D4182C43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F4DD610-3480-4B5D-AB6C-1538D4182C43}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F4DD610-3480-4B5D-AB6C-1538D4182C43}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F4DD610-3480-4B5D-AB6C-1538D4182C43}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {05F0005B-FC82-4B57-BAE6-9FA284547CA5}
EndGlobalSection
GlobalSection(Performance) = preSolution
HasPerformanceSessions = true
EndGlobalSection
EndGlobal
Until then, but when I'm going to run any of the projects I get this error:
EDIT:
I'vechangednamespace
ofglobal.asax.cs
anditendsupcausingtheseerrors:
And when I hover over the error, it asks me to add using SiteTeste