OptimizeIL = "true"
DebugSymbols = "$(DebugSymbols)"
DebugType = "$(DebugType)"
+ NeedDebug = "$(NeedDebug)"
UseInjection = "$(NeedInjection)"
KeepXamlResources = "$(XFKeepXamlResources)" />
<Touch Files="$(IntermediateOutputPath)XamlC.stamp" AlwaysCreate="True" />
else
LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}Ignoring dependency and reference paths due to an unsupported resolver");
- var debug = DebugSymbols || (!string.IsNullOrEmpty(DebugType) && DebugType.ToLowerInvariant() != "none");
-
var readerParameters = new ReaderParameters
{
AssemblyResolver = resolver,
ReadWrite = !ReadOnly,
- ReadSymbols = debug,
+ ReadSymbols = NeedDebug,
};
using (var assemblyDefinition = AssemblyDefinition.ReadAssembly(System.IO.Path.GetFullPath(Assembly), readerParameters))
{
assemblyDefinition.Write(new WriterParameters
{
- WriteSymbols = debug,
+ WriteSymbols = NeedDebug,
});
LoggingHelper.LogMessage(Low, $"{new string(' ', 2)}done.");
}
public bool DebugSymbols { get; set; }
public string DebugType { get; set; }
public string XamlFilePath { get; set; }
+ public bool NeedDebug { get; set; } = false;
protected TaskLoggingHelper LoggingHelper { get; }