I have two files holding partial classes, but method sendMessage and field dte are not recognized in the second file.
I’m not sure if it is because it is a WPF component.
namespace MyNamespace
{
public partial class RefactorControl
{
public async System.Threading.Tasks.Task saveAllFilesAsync()
{
sendMessage("Saving all files");
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
dte.Documents.SaveAll();
}
}
}
In the other file, these are defined
namespace MyNamespace
{
public partial class RefactorControl
{
private DTE dte;
public void sendMessage(string message)
{
...
}
}
}
am I missing something?
2