// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#if NET_2_0
using System;
using System.Diagnostics;
namespace Microsoft.Build.Tasks {
public class AL : ToolTaskExtension {
- Process alProcess;
-
public AL ()
{
}
else
commandLine.AppendSwitch ("/delaysign-");
commandLine.AppendSwitchIfNotNull ("/description:", Description);
- if (EmbedResources != null)
- foreach (ITaskItem item in EmbedResources)
- commandLine.AppendSwitchIfNotNull ("/embed:", item.ItemSpec);
+ if (EmbedResources != null) {
+ foreach (ITaskItem item in EmbedResources) {
+ string logical_name = item.GetMetadata ("LogicalName");
+ if (!string.IsNullOrEmpty (logical_name))
+ commandLine.AppendSwitchIfNotNull ("/embed:", string.Format ("{0},{1}", item.ItemSpec, logical_name));
+ else
+ commandLine.AppendSwitchIfNotNull ("/embed:", item.ItemSpec);
+ }
+ }
commandLine.AppendSwitchIfNotNull ("/evidence:", EvidenceFile);
commandLine.AppendSwitchIfNotNull ("/fileversion:", FileVersion);
commandLine.AppendSwitchIfNotNull ("/flags:", Flags);
protected override string GenerateFullPathToTool ()
{
- return Path.Combine (ToolPath, ToolExe);
+ if (!string.IsNullOrEmpty (ToolPath))
+ return Path.Combine (ToolPath, ToolExe);
+ return ToolLocationHelper.GetPathToDotNetFrameworkFile (ToolExe, TargetDotNetFrameworkVersion.VersionLatest);
}
public string AlgorithmId {
}
protected override string ToolName {
- get {
- return MSBuildUtils.RunningOnWindows ? "al.bat" : "al";
- }
+ get { return "al.exe"; }
}
public string Trademark {
}
}
-#endif