Использование Visual Studio 2022 Community Edition
При создании рабочего процесса и необходимости заполнения выражения он заполняет его сгенерированным кодом
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace SupportDashboard.Workflows {
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using SupportDashboard.Classes;
using System.Web;
using System.IO;
using Charting;
using System.Reflection;
public class GetChart_5c61d36020bd4aa8824c43ae719c658b {
public static System.Collections.Generic.List availableTypes;
public static System.IO.FileInfo dll;
public static System.IO.DirectoryInfo di;
public static System.Collections.Generic.List assemblyList;
public static System.Collections.Generic.List assemblies;
public static System.Collections.Generic.List charts;
public static System.Reflection.Assembly assem;
public static System.Collections.Generic.List availableType;
public static string chartName;
public static string location;
public static SupportDashboard.Classes.ChartDetail ChartDetail;
public static string ChartName;
public static string Location;
public static System.Web.HttpContext HTTPContext;
static object CSharpExpressionPlaceHolder() {
// start of expression
#line 1 "C:\Users\chapmp01\source\repos\SupportDashboard\SupportDashboard\Workflows\GetChart.xaml"
return //------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace SupportDashboard.Workflows {
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using SupportDashboard.Classes;
using System.Web;
using System.IO;
using Charting;
using System.Reflection;
public class GetChart_5c61d36020bd4aa8824c43ae719c658b {
public static System.Collections.Generic.List availableTypes;
public static System.IO.FileInfo dll;
public static System.IO.DirectoryInfo di;
public static System.Collections.Generic.List assemblyList;
public static System.Collections.Generic.List assemblies;
public static System.Collections.Generic.List charts;
public static System.Reflection.Assembly assem;
public static System.Collections.Generic.List availableType;
public static string chartName;
public static string location;
public static SupportDashboard.Classes.ChartDetail ChartDetail;
public static string ChartName;
public static string Location;
public static System.Web.HttpContext HTTPContext;
static System.Reflection.Assembly CSharpExpressionPlaceHolder() {
// start of expression
#line 1 "C:\Users\chapmp01\source\repos\SupportDashboard\SupportDashboard\Workflows\GetChart.xaml"
return (Assembly)Assembly.LoadFile(dll.FullName);
#line default
#line hidden
// end of expression
}
}
};
#line default
#line hidden
// end of expression
}
}
}
Это даже не компилируется, когда intellisense сообщает мне «Недопустимое пространство имен выражений», а также сообщает, что «;» отсутствует, а также несколько концевых скобок.
Все, что я обычно вставляю, это
Assembly.LoadFile(dll.FullName)
Кто-нибудь знает, что пытается сделать Visual Studio или как остановить создание этого кода.
В конечном итоге с помощью задания я пытаюсь реализовать подписка в моем рабочем процессе
Assembly assembly = Assembly.LoadFile(dll.FullName);
Подробнее здесь: https://stackoverflow.com/questions/791 ... when-filli
Остановка рабочего процесса Windows в Visual Studio. Автоматическое создание кода при заполнении выражения в рабочем про ⇐ C#
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение