error: csc.exe exited with code 532467266
Hi everyone,
I got this error when I try to build the project. The project is a simple power calculator computing the real power based on voltage phasor and current phasor. I have tried different methods suggested in stackflow but they don’t work. Please let me know if anyone has seen this problem before. The project code is also attached. Thanks.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CalcPower.Framework;
using CalcPower.Model.GPA;
namespace CalcPower
{
static class Algorithm
{
public static void UpdateSystemSettings()
{
SystemSettings.FramesPerSecond = 30;
SystemSettings.LagTime = 3;
SystemSettings.LeadTime = 1;
}
public static Power Execute(VIPair input)
{
Power output = new Power();
// Implement your algorithm here
output.Active = 3 * input.Voltage.Magnitude * input.Current.Magnitude * Math.Cos(input.Voltage.Angle - input.Current.Angle);
// You can also write messages to the main window:
MainWindow.WriteMessage("yes");
return output;
}
}
}