Unable to open project in Visual Studio for mac

brijmitchellbrijmitchell USMember ✭✭
edited August 2017 in Visual Studio

I have been working on a selenium project in visual studio, I would like to open this in visual studio for mac to execute the test using the mac web driver.

But when I open it I get

"This project type is not supported by Visual Studio Community 2017 For Mac"

I am pretty sure it has opened before, is there anything I need to change in the project to get this working

Here is my package list

        <?xml version="1.0" encoding="utf-8"?>
        <packages>
          <package id="EntityFramework" version="6.1.3" targetFramework="net451" />
          <package id="ExtentReports" version="3.0.2" targetFramework="net452" />
          <package id="MSTest.TestAdapter" version="1.1.11" targetFramework="net452" />
          <package id="MSTest.TestFramework" version="1.1.11" targetFramework="net452" />
          <package id="Selenium.Support" version="3.4.0" targetFramework="net452" />
          <package id="Selenium.WebDriver" version="3.4.0" targetFramework="net452" />
          <package id="System.Data.Common" version="4.3.0" targetFramework="net451" />
          <package id="System.Data.SqlClient" version="4.3.1" targetFramework="net452" />
          <package id="TestToolsToXunitProxy" version="0.0.4" targetFramework="net451" />
          <package id="xunit" version="2.2.0" targetFramework="net452" />
          <package id="xunit.abstractions" version="2.0.1" targetFramework="net452" />
          <package id="xunit.assert" version="2.2.0" targetFramework="net452" />
          <package id="xunit.core" version="2.2.0" targetFramework="net452" />
          <package id="xunit.extensibility.core" version="2.2.0" targetFramework="net452" />
          <package id="xunit.extensibility.execution" version="2.2.0" targetFramework="net452" />
          <package id="xunit.runner.console" version="2.2.0" targetFramework="net452" developmentDependency="true" />
          <package id="xunit.runner.visualstudio" version="2.2.0" targetFramework="net452" developmentDependency="true" />
        </packages>

Here is my csproj

        <?xml version="1.0" encoding="utf-8"?>
        <Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
          <Import Project="..\packages\xunit.runner.visualstudio.2.2.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xunit.runner.visualstudio.2.2.0\build\net20\xunit.runner.visualstudio.props')" />
          <Import Project="..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.props')" />
          <PropertyGroup>
            <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
            <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
            <ProjectGuid>{2AB44E28-7408-43D5-A381-029177F579D0}</ProjectGuid>
            <OutputType>Library</OutputType>
            <AppDesignerFolder>Properties</AppDesignerFolder>
            <RootNamespace>LegacyUITests</RootNamespace>
            <AssemblyName>LegacyUITests</AssemblyName>
            <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
            <FileAlignment>512</FileAlignment>
            <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
            <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
            <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
            <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
            <IsCodedUITest>False</IsCodedUITest>
            <TestProjectType>UnitTest</TestProjectType>
            <NuGetPackageImportStamp>
            </NuGetPackageImportStamp>
          </PropertyGroup>
          <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
            <DebugSymbols>true</DebugSymbols>
            <DebugType>full</DebugType>
            <Optimize>false</Optimize>
            <OutputPath>bin\Debug\</OutputPath>
            <DefineConstants>DEBUG;TRACE</DefineConstants>
            <ErrorReport>prompt</ErrorReport>
            <WarningLevel>4</WarningLevel>
          </PropertyGroup>
          <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
            <DebugType>pdbonly</DebugType>
            <Optimize>true</Optimize>
            <OutputPath>bin\Release\</OutputPath>
            <DefineConstants>TRACE</DefineConstants>
            <ErrorReport>prompt</ErrorReport>
            <WarningLevel>4</WarningLevel>
          </PropertyGroup>
          <ItemGroup>
            <Reference Include="ExtentReports, Version=3.0.2.0, Culture=neutral, processorArchitecture=MSIL">
              <HintPath>..\packages\ExtentReports.3.0.2\lib\ExtentReports.dll</HintPath>
            </Reference>
            <Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
              <HintPath>..\packages\MSTest.TestFramework.1.1.11\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
            </Reference>
            <Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
              <HintPath>..\packages\MSTest.TestFramework.1.1.11\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
            </Reference>
            <Reference Include="System" />
            <Reference Include="System.Core" />
            <Reference Include="System.Data" />
            <Reference Include="System.Data.SqlClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
              <HintPath>..\packages\System.Data.SqlClient.4.3.1\lib\net451\System.Data.SqlClient.dll</HintPath>
            </Reference>
            <Reference Include="System.Drawing" />
            <Reference Include="WebDriver, Version=3.4.0.0, Culture=neutral, processorArchitecture=MSIL">
              <HintPath>..\packages\Selenium.WebDriver.3.4.0\lib\net40\WebDriver.dll</HintPath>
            </Reference>
            <Reference Include="WebDriver.Support, Version=3.4.0.0, Culture=neutral, processorArchitecture=MSIL">
              <HintPath>..\packages\Selenium.Support.3.4.0\lib\net40\WebDriver.Support.dll</HintPath>
            </Reference>
            <Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
              <HintPath>..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll</HintPath>
            </Reference>
            <Reference Include="xunit.assert, Version=2.2.0.3545, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
              <HintPath>..\packages\xunit.assert.2.2.0\lib\netstandard1.1\xunit.assert.dll</HintPath>
            </Reference>
            <Reference Include="xunit.core, Version=2.2.0.3545, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
              <HintPath>..\packages\xunit.extensibility.core.2.2.0\lib\netstandard1.1\xunit.core.dll</HintPath>
            </Reference>
            <Reference Include="xunit.execution.desktop, Version=2.2.0.3545, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
              <HintPath>..\packages\xunit.extensibility.execution.2.2.0\lib\net452\xunit.execution.desktop.dll</HintPath>
            </Reference>
          </ItemGroup>
          <ItemGroup>
            <Compile Include="Methods\General.cs" />
            <Compile Include="Objects\Elements\AdminElements.cs" />
            <Compile Include="Objects\Elements\AssessorElements.cs" />
            <Compile Include="Objects\Elements\DinerApplyElements.cs" />
            <Compile Include="Objects\Elements\QuizElements.cs" />
            <Compile Include="Objects\Pages\AdminPages.cs" />
            <Compile Include="Objects\Pages\AssessorPage.cs" />
            <Compile Include="Objects\Pages\DinerApply.cs" />
            <Compile Include="Objects\Pages\HomePage.cs" />
            <Compile Include="Objects\Pages\QuizPage.cs" />
            <Compile Include="Tests\Admin\AdminTests.cs" />
            <Compile Include="Tests\Apply\DinerApplyTests.cs" />
            <Compile Include="Tests\Assessor\AssessorTests.cs" />
            <Compile Include="Tests\Assessor\TakeTheQuiz.cs" />
            <Compile Include="Tests\Filters\FiltersTest.cs" />
            <Compile Include="Tests\Main\LegacySmokeTest.cs" />
            <Compile Include="Properties\AssemblyInfo.cs" />
            <Compile Include="Tests\Rules\RulesTest.cs" />
            <Compile Include="Tests\Sandbox\Sandbox.cs" />
          </ItemGroup>
          <ItemGroup>
            <None Include="Drivers\chromedriver" />
            <None Include="packages.config" />
          </ItemGroup>
          <ItemGroup>
            <Folder Include="Reports\" />
            <Folder Include="Screenshots\" />
          </ItemGroup>
          <ItemGroup>
            <Content Include="Drivers\chromedriver.exe" />
          </ItemGroup>
          <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
          <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
          <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
            <PropertyGroup>
              <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
            </PropertyGroup>
            <Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.props'))" />
            <Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets'))" />
            <Error Condition="!Exists('..\packages\xunit.runner.visualstudio.2.2.0\build\net20\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\xunit.runner.visualstudio.2.2.0\build\net20\xunit.runner.visualstudio.props'))" />
          </Target>
          <Import Project="..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.1.1.11\build\net45\MSTest.TestAdapter.targets')" />
        </Project>

Any help would be appreciated

Answers

  • JonahHulselmansJonahHulselmans USMember ✭✭

    Any solutions? Because I'm having the same problem.

  • mattwardmattward GBMember Xamurai

    The project is an MS Test project which is not supported in Visual Studio for Mac. This is determined by the project type guid: {3AC096D0-A1C2-E12C-1390-A8335801FDAB}. The project also has some Visual Studio Tools imports which currently are not available on the Mac. Visual Studio for Mac supports .NET Core MS Test projects but not the MS Test projects that require the MS Test tooling that is shipped with Visual Studio on Windows.

    @JonahHulselmans - Without seeing the project type guid in your project you may have a different project type. Whilst you could remove the project type guid that Visual Studio for Mac does not like the project may not work or build properly on the Mac.

Sign In or Register to comment.