"Microsoft.Sdc.Tasks" project is not getting recognized
- From: "ash07" <bhalgatashish@xxxxxxxxx>
- Date: 23 Feb 2007 01:37:31 -0800
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
.
- Prev by Date: RE: PreTranslateMessage and .NET
- Next by Date: .net 2.0 : looking for a "best practice" for multi threading jobs
- Previous by thread: Determining per-connection bandwidth - 1Please Help!
- Next by thread: .net 2.0 : looking for a "best practice" for multi threading jobs
- Index(es):
Relevant Pages
|