"Microsoft.Sdc.Tasks" project is not getting recognized





Hi All,

I am facing the problem . I am not able to use the
Sdc.Tasks.dll .

I want to use Installshield Class located at
Microsoft.Sdc.tasks.Tools which is use to convert .ism to .msm . I
have copied the bin foldr from \GDN2.0.2574.000\Microsoft.Sdc.Tasks
\MainTempGDN\Install\Build\bin to the folder where my script is
placed. Running the below project file using MSBuild gives the
following error.

<?xml version="1.0" encoding="utf-8"?>

<Project xmlns="http://schemas.microsoft.com/developer/
msbuild/2003" DefaultTargets="Test">


<Import Project="bin\Microsoft.Sdc.Common.targets" />

<Target Name="Test" >
<Tools.InstallShield
BuildPath="C:\InstallShieldOutput"
ProjectFilePath="C:\InstallShieldProjects
\myProject.ism"
ReleaseName="Test"
ReleaseConfiguration="COMP" >
</Tools.InstallShield>
</Target>
</Project>





Build FAILED.
C:\Batchfiles\v1.8\msm.xml(10,21): error : A task error has occured.
C:\Batchfiles\v1.8\msm.xml(10,21): error : Message = Object reference
not set to an instance of an object.
C:\Batchfiles\v1.8\msm.xml(10,21): error : ProjectFilepath = C:
\InstallShieldProjects\myProject.ism
C:\Batchfiles\v1.8\msm.xml(10,21): error : ReleaseName = Test
C:\Batchfiles\v1.8\msm.xml(10,21): error : ReleaseConfiguration = COMP
C:\Batchfiles\v1.8\msm.xml(10,21): error : BuildPath = C:
\InstallShieldOutput
C:\Batchfiles\v1.8\msm.xml(10,21): error : WriteableDirectories =
<null>
C:\Batchfiles\v1.8\msm.xml(10,21): error :
C:\Batchfiles\v1.8\msm.xml(10,21): error : at
Microsoft.Sdc.Tasks.Tools.Installshield.I
nternalExecute() in c:\Projects\SdcDepot\Microsoft.Sdc.Tasks\Main\Src
\Solutions\Main\Tasks
\Tools\Installshield.cs:line 93
C:\Batchfiles\v1.8\msm.xml(10,21): error : at
Microsoft.Sdc.Tasks.TaskBase.Execute() in
c:\Projects\SdcDepot\Microsoft.Sdc.Tasks\Main\Src\Solutions\Main\Tasks
\TaskBase.cs:line 7
5
0 Warning(s)
1 Error(s)



After that i did some modification , Instead of using <Import targets
, I replaced with

<UsingTask TaskName=" Microsoft.Sdc.Tasks.Tools.InstallShield"
AssemblyFile="C:\Batchfiles\v1.8\bin\Microsoft.Sdc.Tasks.dll" />

and the Assembly location is where i have copied the Bin Folder. But
still i was getting error

error MSB4036: The "Tools.InstallShield" task was not fo
und. Check the following: 1.) The name of the task in the project file
is the same as the
name of the task class. 2.) The task class is "public" and implements
the Microsoft.Build.
Framework.ITask interface. 3.) The task is correctly declared with
<UsingTask> in the proj
ect file, or in the *.tasks files located in the "C:\WINDOWS
\Microsoft.NET\Framework\v2.0.
50727" directory.

I am not able to locate where i am gtng wrong. Is there any document
which will help me in understanding "How to use Sdc tasks in your
Msbuild script?"

Thanks,

Ashish

.



Relevant Pages

  • Re: GNAT and GNU build system
    ... the Makefile and does not, per se, require a configure script. ... > with the appropriate GNAT project file (assuming that GNAT is the ... I think that the general idea is to have a minimal configure script ...
    (comp.lang.ada)
  • Re: Is a custom project hierarchy possible for C# projects?
    ... Are you trying to use use to different dev tools at ... MSBuild is decoupled from Visual Studio. ... >> source and the project file in this manner. ... >> project file in a directory that is a parent directory of where the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is a custom project hierarchy possible for C# projects?
    ... MSBuild is decoupled from Visual Studio. ... > I understand what you are saying now, and no, you can not decouple ... > source and the project file in this manner. ... > project file in a directory that is a parent directory of where the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is a custom project hierarchy possible for C# projects?
    ... source and the project file in this manner. ... MSBUILD does not> care where your files reside on disk. ... and place your source files in those sub>> directories. ... The Express edition should be using the>> MSBUILD system in order to compile the project. ...
    (microsoft.public.dotnet.languages.csharp)
  • Why msbuild changes a new line when using console.write(" ") ?
    ... I'm testing to see whether msbuild can replace nmake. ... When runing test.exe alone or using nmake, the numbers are in one line, ... How to write the msbuild project file to let the numbers in one line? ...
    (microsoft.public.dotnet.general)