2013-02-23 1 views
0

asp.net mvc 3 프로젝트가 있고 솔루션에 별도의 BusinessLayer 프로젝트가 포함되어 있습니다. 로컬 git 저장소를 통해 내 사이트를 Azure에 배포하려고 할 때 다음 오류가 발생합니다 : '<remote_path>\BusinessLayer\BusinessLayer.csproj' is not a deployable project.. 로그에는 다른 정보가 제공되지 않습니다. 사이트가 내 로컬 서버에 완벽하게 배포됩니다. 그래서이 오류가 발생하는 이유를 적어도 알고 싶습니다. 미리 감사드립니다. 당신이 BusinessLayer 프로젝트가 아닌 웹 사이트 프로젝트를 배포하려는처럼asp.net mvc 3 프로젝트를 Windows Azure 웹 사이트에 배포하는 중 오류가 발생했습니다.

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    <PropertyGroup> 
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    <ProductVersion>8.0.30703</ProductVersion> 
    <SchemaVersion>2.0</SchemaVersion> 
    <ProjectGuid>{31F2F6FE-10D8-4510-AC61-CBE1962D3940}</ProjectGuid> 
    <OutputType>Library</OutputType> 
    <AppDesignerFolder>Properties</AppDesignerFolder> 
    <RootNamespace>BusinessLayer</RootNamespace> 
    <AssemblyName>BusinessLayer</AssemblyName> 
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 
    <FileAlignment>512</FileAlignment> 
    </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="MongoDB.Bson"> 
     <HintPath>..\..\Libs\MongoDB.Bson.dll</HintPath> 
    </Reference> 
    <Reference Include="MongoDB.Driver"> 
     <HintPath>..\..\Libs\MongoDB.Driver.dll</HintPath> 
    </Reference> 
    <Reference Include="System" /> 
    <Reference Include="System.Core" /> 
    <Reference Include="System.Drawing" /> 
    <Reference Include="System.Xml.Linq" /> 
    <Reference Include="System.Data.DataSetExtensions" /> 
    <Reference Include="Microsoft.CSharp" /> 
    <Reference Include="System.Data" /> 
    <Reference Include="System.Xml" /> 
    </ItemGroup> 
    <ItemGroup> 
    <Compile Include="Battle.cs" /> 
    <Compile Include="BattleManager.cs" /> 
    <Compile Include="BattlePlace.cs" /> 
    <Compile Include="Helpers\ConvertHelper.cs" /> 
    <Compile Include="Helpers\ImageHelper.cs" /> 
    <Compile Include="Message.cs" /> 
    <Compile Include="Picture.cs" /> 
    <Compile Include="Place.cs" /> 
    <Compile Include="PlaceManager.cs" /> 
    <Compile Include="Subject.cs" /> 
    <Compile Include="User.cs" /> 
    <Compile Include="Helpers\DBHelper.cs" /> 
    <Compile Include="Properties\AssemblyInfo.cs" /> 
    </ItemGroup> 
    <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 
    <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
     Other similar extension points exist, see Microsoft.Common.targets. 
    <Target Name="BeforeBuild"> 
    </Target> 
    <Target Name="AfterBuild"> 
    </Target> 
    --> 
</Project> 

답변

1

Azure는 배포해야하는 프로젝트를 정확하게 알려야 할 수도 있습니다.이 프로젝트는 프로젝트의 루트에서 .deployment 파일을 사용하여 수행 할 수 있습니다. 예 :

[config] 
project = WebProject/WebProject.csproj 

자세한 내용은 this page을 참조하십시오.

0

는 소리 : 필요한 경우

여기, 내 .csproj 파일입니다. MVC 사이트 프로젝트에 BusinessLayer에 대한 참조가있는 한 웹 사이트 만 배포하면됩니다. BusinessLayer가 참조로 포함됩니다. BusinessLayer는 응용 프로그램이 아닌 라이브러리이므로 배포 할 수 없습니다.

관련 문제