Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, May 12, 2017 2:48 PM | 1 vote
I have an .sln file but it will not load into VS as a solution file. The contents is listed below. Can some one tell me if this a solution file , XML file or Both? Is the code to a solution file XML? Trying to figure out why this file will not load as a solution file.
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D984FC4B-1143-4907-89C2-6E28A8893119}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>TOEW</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>Off</OptionStrict>
<RootNamespace>WEOT</RootNamespace>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<MyType>Windows</MyType>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\/OutputPath>
<DocumentationFile>TOEW.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032,42353,42354,42355</NoWarn>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\/OutputPath>
<DocumentationFile>TOEW.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<NoWarn>42016,42017,42018,42019,42032,42353,42354,42355</NoWarn>
<DebugType>none</DebugType>
</PropertyGroup>
<ItemGroup>
<Reference Include="customcontrol2">
<Name>customcontrol2</Name>
<HintPath>bin\customcontrol2.dll</HintPath>
</Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.configuration" />
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Data.OracleClient">
<Name>System.Data.OracleClient</Name>
</Reference>
<Reference Include="System.DirectoryServices">
<Name>System.DirectoryServices</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Web">
<Name>System.Web</Name>
</Reference>
<Reference Include="System.Web.Services">
<Name>System.Web.Services</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<Reference Include="validatecomnet">
<Name>validatecomnet</Name>
<HintPath>bin\validatecomnet.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Configuration" />
<Import Include="System.Data" />
<Import Include="System.Drawing" />
<Import Include="System.Web" />
<Import Include="System.Web.UI" />
<Import Include="System.Web.UI.HtmlControls" />
<Import Include="System.Web.UI.WebControls" />
</ItemGroup>
<ItemGroup>
<Compile Include="Admin\CreateUpdateCategory.aspx.vb">
<DependentUpon>CreateUpdateCategory.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Admin\CreateUpdateEmp.aspx.vb">
<DependentUpon>CreateUpdateEmp.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Admin\CreateUpdateTrade.aspx.vb">
<DependentUpon>CreateUpdateTrade.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
.
.
...... more code
.
.
<EmbeddedResource Include="SystemsRoot\TOEWHome.aspx.resx">
<DependentUpon>TOEWHome.aspx.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UpdateHrs\UpdateWkEndHrs.aspx.resx">
<DependentUpon>UpdateWkEndHrs.aspx.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UpdateHrs\UpdWkEndOTHrs.aspx.resx">
<DependentUpon>UpdWkEndOTHrs.aspx.vb</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Service Include="{CF845C55-C321-4742-B673-E6212D061ED9}" />
</ItemGroup>
<ItemGroup>
<None Include="My Project\Settings.settings">
<CustomToolNamespace>My</CustomToolNamespace>
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Excel\ />
<Folder Include="RepXml\ />
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath42)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildExtensionsPath42)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>51016</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://ahivdb04118.ford.com/TOEW</IISUrl>
<OverrideIISAppRootUrl>True</OverrideIISAppRootUrl>
<IISAppRootUrl>http://ahivdb04118.ford.com/TOEW</IISAppRootUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>http://shv03021.sharonville.ford.com</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>
All replies (4)
Monday, May 15, 2017 2:57 AM
Hi friend,
It’s the .csproj file which contains the list of files in your project, plus the references to system assemblies,etc.
There are a whole bunch of settings - Visual Studio version, project type, Assembly name, Application Icon, Target Culture, Installation Url, ...
Everything you need to build your project. While you could assume that you need everything in the current folder, having an explicit list allows you to organize them logically both on the disk and in the project so you can more easily find the files you want.
It's just XML so you can open it in text editor like Notepad.
You get one .csproj file per assembly and the .sln (solution file) ties together all the assemblies that make up your project.
Best regards,
Fletch
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Monday, May 15, 2017 12:20 PM
Thanks a lot for your response. I am unable to load this file into Visual Studio. I tried to load it as a .sln and as a .csproj with no luck. Below is a sample of what shows up when I try to load the .sln file.
Solution Explorer:
Solution 'WEOT' (0 projects)
WEOT (unavaliable)
The project file was unloaded.
Tuesday, May 16, 2017 3:13 AM
Hi friend,
Welcome back.
May I ask where you got the file?
Do you just have this file alone or with your project files together?
If you open .sln or .csproj file by using Visual Studio without any other project files, it could look like that in your VS.
I got .csproj within my project file, it could be open in VS like this:
Right-click the WebApplication1(unavailable) -> Reload Project
a pop-up shows: Click Yes button
Then my Solution Explorer will be like:
Note: the precondition is that you've got the complete project with the .csproj file together.
Best regards,
Fletch
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Wednesday, May 17, 2017 9:57 AM
Hi friend,
How is this issue going? Please feel free to let us know if you nee more help.
Thanks for your attention.
Best regards,
Fletch
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].