我有一个asp.net core 2.2在windowsos 中的项目。
我部署项目并kesterl使用以下命令运行:
dotnet myapp.dll
Run Code Online (Sandbox Code Playgroud)
那是运行在http://localhost:5000.
我需要在mydomain.com.
我mydomain.com在hosts中设置了127.0.0.1ip。
如何设置这个配置?
我有一个动态的html页面,并且div.id=myComponent在此html中有一个element(),其中包含三个input元素。
在direction该的body元素rtl和div.id="myComponent"元素是ltr这样的:
<html>
<body style="direction: rtl;">
<input type="text" /> <!-- I can not set tabindex for this elements. beacuse these are generate the dynamically. -->
...
<!-- any elements -->
<div style="direction: ltr;" id="myComponent">
<span> <input tabindex="3" type="text" placeholder="y" /></span>
<span><input tabindex="2" type="text" placeholder="m" /></span>
<span><input tabindex="1" type="text" placeholder="d" /></span>
</div>
<input type="text" />
...
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
当focus进入时,我需要它,div.id="myComponent"如下所示:
d => m => …
我有一个简单的项目.NetFramework 3.5 Class library。
我在项目中的(with )c# dynamic code处编译并运行,并从项目中调用。runtimeCodeDom.NetFrameworkAsp.NetCore 2.0
当我从项目中调用类BuildAssembly中的方法时,遇到此错误:(CodeDom 抛出)CommonAsp.NetCore 2.0
"System.PlatformNotSupportedException":"此平台不支持该操作。" 在 Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters 选项,String[] fileNames) 在 Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters 选项,String[] 源)
以下代码:
.NetFrameWork 3.5:
public class Common
{
public Assembly BuildAssembly(string code)
{
CodeDomProvider codeProvider = CodeDomProvider.CreateProvider("CSharp");
CompilerParameters compilerparams = new CompilerParameters();
compilerparams.GenerateExecutable = false;//Generate an executable instead of a class library
compilerparams.GenerateInMemory = false; //Save the assembly as a physical file.
compilerparams.ReferencedAssemblies.Add("mscorlib.dll");
compilerparams.ReferencedAssemblies.Add("System.dll");
compilerparams.ReferencedAssemblies.Add("System.Data.dll");
compilerparams.ReferencedAssemblies.Add("System.Xml.dll");
CompilerResults results …Run Code Online (Sandbox Code Playgroud)