nproj & references
От: ecinunice  
Дата: 07.03.08 12:09
Оценка:
Есть сборка cl.dll, лежащая на локальном диске и полученная из кода
namespace cl {
    public class Class1 {
      public static C : string = "asdasd";
    }
}


Создаю консольное приложение, руками модифицирую ConsoleApplication1.nproj
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- дефолтная часть -->
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\boot\Debug\</OutputPath> <!--здесь лежит cl.dll-->
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <HData Condition=" '$(HData)' == '' ">..\boot\Debug</HData> <!--определяю каталог cl.dll-->
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>..\boot\Release\</OutputPath> <!--здесь лежит cl.dll-->
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <HData Condition=" '$(HData)' == '' ">..\boot\Release</HData> <!--определяю каталог cl.dll-->
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="mscorlib" />
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
    <Reference Include="$(Nemerle)\Nemerle.dll" />
    <Reference Include="$(HData)\cl.dll"/> <!--подключаю cl.dll-->
  </ItemGroup>
  <!-- дефолтная часть -->
</Project>


Код приложения
using System;
using System.Console;
using Nemerle.Utility;

module Program
{
  Main() : void
  {
    WriteLine(cl.Class1.C);
    _ = ReadLine();
  }
}

оно успешно компилируется, но в VS в Solution Explorer в узле References сборки нет, также нет автодополнения для сборки cl.dll.
... << RSDN@Home 1.2.0 alpha rev. 737>>
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.