小编bar*_*onm的帖子

38
推荐指数
1
解决办法
2万
查看次数

Azure网站 - Web.config转换失败"源文档中没有元素匹配/configuration/system.identityModel/identityConfiguration"

我们的ASP.NET Web Api项目有两个部署配置(.pubxml):

  1. Web部署直接部署到Azure网站.
  2. 将部署打包到本地Zip文件.

Web部署(1)工作得很好.对zip的Package部署失败,并出现以下错误:

Warning 3   No element in the source document matches '/configuration/system.identityModel'     20  10  MyWebProject
Error   4   No element in the source document matches '/configuration/system.identityModel/identityConfiguration'       21  10  MyWebProject
Run Code Online (Sandbox Code Playgroud)

查看详细日志,我可以看到它在Web.config转换期间失败了.

        ParameterizeTransformXml:   No element in the source document matches '/configuration/appSettings/add[@key='ida:AudienceUri']'
        ParameterizeTransformXml:   Not executing SetTokenizedAttributes (transform line 7, 9)
        ParameterizeTransformXml:   No element in the source document matches '/configuration/appSettings/add[@key='ida:Realm']'
        ParameterizeTransformXml:   Not executing SetTokenizedAttributes (transform line 10, 9)
        ParameterizeTransformXml:   No element in the source document matches '/configuration/appSettings/add[@key='ida:FederationMetadataLocation']'
        ParameterizeTransformXml:   Not executing …
Run Code Online (Sandbox Code Playgroud)

asp.net azure web.config-transform

13
推荐指数
1
解决办法
5914
查看次数

找不到.node-gyp/4.1.2/common.gypi

它正确启动浏览器模拟器ionic serve.

但是,gulp watch此异常崩溃了......

    /node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22
    throw new Error('`libsass` bindings not found. Try reinstalling `node-sass`?');
    ^

Error: `libsass` bindings not found. Try reinstalling `node-sass`?
Run Code Online (Sandbox Code Playgroud)

奇怪的是,虽然npm rebuild node-sass错过了这个错误

gyp: .node-gyp/4.1.2/common.gypi not found
Run Code Online (Sandbox Code Playgroud)

这里讨论了这个问题,建议npm@2.14.4解决问题. https://github.com/brianc/node-pg-native/issues/27

但是,我正在跑步npm@2.14.6.

我必须在这里或问题27中忽略一些微不足道的事情.任何人都可以看到它是什么吗?

npm gulp ionic

6
推荐指数
1
解决办法
2060
查看次数

检索安装在不同用户下的证书。获取ChildItem Cert:\<用户名>\My

我想要用于检索安装在不同用户下的证书的 powershell 等效项。

这样的事情存在吗?

Get-ChildItem Cert:\<username>\My
Run Code Online (Sandbox Code Playgroud)

更多选项,其他只是LocalMachineCurrentUser。该命令由管理员帐户执行。

更新:

虽然这不能回答我的问题,但我能够在文件系统上找到证书。为本地用户安装的证书位于:

C:\Users\%USERPROFILE%\AppData\Roaming\Microsoft\Crypto\RSA
Run Code Online (Sandbox Code Playgroud)

powershell certificate

5
推荐指数
1
解决办法
2万
查看次数

为符号包配置 Artifactory (*.snupkg)

在过去一年左右的时间里,dotnet 和 nuget 团队引入了具有命名约定的符号包*.snupkg。Nuget.org 完全支持索引这些。

我们如何配置 Artifactory 来做同样的事情?

实际上,我们需要为 Artifactory 提供此功能。

https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg

artifactory

5
推荐指数
0
解决办法
859
查看次数

VS 2012命名修改仍然适用于dll导出

为什么名称重整仍然适用于func3()签名.我错过了什么?我查看了这些以前提出的问题1,2个 NO DEF文件被引用.

// dllmain.cpp
#include "stdafx.h"

extern "C"  __declspec( dllexport ) double __cdecl func1(int id, double t)
{
    return(1.01);
};

extern "C" __declspec( dllexport ) int __cdecl func2(int id)
{
    return(2);
};

extern "C" __declspec( dllexport ) int __cdecl func3(char* file)
{
    return(1);
};

......
Run Code Online (Sandbox Code Playgroud)

这里的输出来自dumpbin /EXPORTS:

    00000000 characteristics
    51B78F5E time date stamp Tue Jun 11 13:58:06 2013
        0.00 version
           1 ordinal base
           3 number of functions
           3 number of names

    ordinal …
Run Code Online (Sandbox Code Playgroud)

dll winapi dllexport

3
推荐指数
1
解决办法
149
查看次数

PowerShell中的Tuple <int,string>列表

我要这个:

New-Object System.Collections.Generic.List[System.Collections.Generic.Tuple[int,string]]
Run Code Online (Sandbox Code Playgroud)

在PowerShell中,

New-Object System.Collections.Generic.List[System.Collections.Generic.Tuple[int,string]]
Run Code Online (Sandbox Code Playgroud)

不起作用.我错过了什么?

powershell

2
推荐指数
3
解决办法
6978
查看次数

DataGrid 重新定位将新行添加到顶部

在 DataGrid 视图中,空白行添加条目很方便,但当列表很大时很快就会丢失。您可以将其默认位置从 DataGrid 视图的底部更改为顶部吗?

wpf datagrid

1
推荐指数
1
解决办法
3512
查看次数