小编CW2*_*272的帖子

在Web应用程序上使用.NET 4.6.2的长路径问题

我正在构建一个需要使用长路径的ASP.NET Web应用程序.我将它定位到.NET 4.6.2并且一切都很完美,因为4.6.2默认情况下启用了长路径(),直到Windows 10创建者(RS2)更新.

突然,System.IO返回了最大路径异常.我做了一些研究,发现了这篇文章.似乎发布Windows 10创建者(RS2)更新,为了使长路径工作,需要有一个app.mainfest与

<application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
        <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
    </windowsSettings>
</application>
Run Code Online (Sandbox Code Playgroud)

我已经确认将app.manifest修改添加到控制台应用程序会带来长路径功能.唯一的问题是这是一个Web应用程序.我无法弄清楚如何将app.manifest的equivelant添加到Web应用程序中.

.net asp.net

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

未定义使用g ++编译时对sem_wait和pthread_create的引用

我是C的新手,并且在我尝试使用编译程序时不明白为什么会出现这些错误g++ ./main.c.我试过看其他资源,我无法找到我需要的答案.如果有您已经知道的解决方案,请在此处发布.

/tmp/ccSGRAcp.o: In function `producer(void*)':
main.c:(.text+0x12): undefined reference to `sem_wait'
main.c:(.text+0x1c): undefined reference to `sem_wait'
main.c:(.text+0xa0): undefined reference to `sem_post'
main.c:(.text+0xaa): undefined reference to `sem_post'
/tmp/ccSGRAcp.o: In function `consumer(void*)':
main.c:(.text+0xc5): undefined reference to `sem_wait'
main.c:(.text+0xcf): undefined reference to `sem_wait'
main.c:(.text+0x153): undefined reference to `sem_post'
main.c:(.text+0x15d): undefined reference to `sem_post'
/tmp/ccSGRAcp.o: In function `main':
main.c:(.text+0x17e): undefined reference to `sem_init'
main.c:(.text+0x192): undefined reference to `sem_init'
main.c:(.text+0x1a6): undefined reference to `sem_init'
main.c:(.text+0x1c1): undefined reference to `pthread_create'
main.c:(.text+0x1dc): undefined reference to …
Run Code Online (Sandbox Code Playgroud)

c

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

标签 统计

.net ×1

asp.net ×1

c ×1