Hi all,
I wonder whether someone else ever tried to get the SharpDX package via the package manager in SharpDevelop. Specifically I tried to get version 2.6.3 and got a failure message (displayed both in the package manager window status line and the console output) that the SharpDX targets were not found. Looking at the Install.ps1 script I find a line that tests for exactly that:
# Check that SharpDX.targets was correctly imported
$buildProject = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
$importsToRemove = $buildProject.Xml.Imports | Where-Object { $_.Project.Endswith('SharpDX.targets') }
if (!$importsToRemove)
{
throw ("SharpDX.targets import not found in project [{0}]" -f $project.FullName)
}
I reckon that this package uses some VisualStudio object model feature which causes the problem (Matt Ward had a post on NuGet PowerShell Console where he mentions related stuff), but I'm not that much acquainted with package topic and wanted to ask the community before trying to resolve it where there is no resolution.
I'm using build 5.1.0.5071-Beta 2-5f965cb9.
Thanks everyone.