none
使用.netcore3.0开发的WPF程序无法在其他电脑中运行 RRS feed

  • 问题

  • 我用.netcore3.0开发的程序无法在其他电脑中运行 什么提示都没有,就是运行不起来,打开任务管理器,发现程序一闪就崩了,不知道这是为什么,.net core3.0运行环境已经安装,不是环境的问题,我在win7或win10中都会有这个问题,但是我在目标机器中安装了.net core 3.0sdk就可以正常运行,在网上也没有找到这个问题,难道只有我一个人发现这个问题吗?
    2019年10月8日 2:22

答案

  • Hi,

    你把下面链接的.NET Core Installer与.NET Core Desktop Installer都装一下试一下,好像这样才能运行

    https://dotnet.microsoft.com/download/dotnet-core/3.0#runtime-3.0.0

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已标记为答案 BeTheBest 2019年11月4日 6:50
    2019年10月9日 14:16
    版主

全部回复

  • Hi,

    是要安装 .net core 3.0 sdk的,因为现在的net core3.0为预览版,预览版的sdk不适用于vs

    https://blog.csdn.net/yedajiang44/article/details/90339832

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年10月8日 7:06
    版主
  • Hi,

    是要安装 .net core 3.0 sdk的,因为现在的net core3.0为预览版,预览版的sdk不适用于vs

    https://blog.csdn.net/yedajiang44/article/details/90339832

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    .net core 3.0正式版已经出了 9月23日就出了,而且同时发布runtime和sdk


    2019年10月8日 8:21
  • Hi,

    你是使用最新版本的VS2019开发wpf(.net core),然后在其它机台上安装.net Core 3.0(不是先行版),出现的这个问题?

    我刚下载最新的vs2019试了一下,编辑之后,想在其它机台运行,机台需要安装sdk

    https://dotnet.microsoft.com/download/dotnet-core/3.0

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    2019年10月9日 6:43
    版主
  • Hi,

    你是使用最新版本的VS2019开发wpf(.net core),然后在其它机台上安装.net Core 3.0(不是先行版),出现的这个问题?

    我刚下载最新的vs2019试了一下,编辑之后,想在其它机台运行,机台需要安装sdk

    https://dotnet.microsoft.com/download/dotnet-core/3.0

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    是的,自己机器的sdk是.net core 3.0.100 其他机器的runtime是.net core 3.0.0(最新就是这个版本)
    2019年10月9日 8:15
  • Hi,

    你是使用最新版本的VS2019开发wpf(.net core),然后在其它机台上安装.net Core 3.0(不是先行版),出现的这个问题?

    我刚下载最新的vs2019试了一下,编辑之后,想在其它机台运行,机台需要安装sdk

    https://dotnet.microsoft.com/download/dotnet-core/3.0

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    而且不仅是正式版,之前预览版我也发现有这个问题,比如pre8的sdk开发的程序再pre8的runtime环境下运行不起来,我当时没有在意这个问题,想等到正式版再说
    2019年10月9日 8:18
  • Hi,

    你把下面链接的.NET Core Installer与.NET Core Desktop Installer都装一下试一下,好像这样才能运行

    https://dotnet.microsoft.com/download/dotnet-core/3.0#runtime-3.0.0

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已标记为答案 BeTheBest 2019年11月4日 6:50
    2019年10月9日 14:16
    版主