{"id":108935,"date":"2024-04-17T11:53:59","date_gmt":"2024-04-17T03:53:59","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/108935.html"},"modified":"2024-04-17T11:54:00","modified_gmt":"2024-04-17T03:54:00","slug":"net-core%e5%92%8c-net-framework%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/108935.html","title":{"rendered":".NET Core\u548c.NET Framework\u7684\u533a\u522b"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/02172735\/a6467c5a-b5fe-4491-ab60-4cd8232806d7.webp\" alt=\".NET Core\u548c.NET Framework\u7684\u533a\u522b\" \/><\/p>\n<p><p>.NET Core\u548c.NET Framework\u7684\u4e3b\u8981\u533a\u522b\u5728\u4e8e\u5b83\u4eec\u7684\u5e73\u53f0\u652f\u6301\u3001\u90e8\u7f72\u6a21\u5f0f\u3001\u6027\u80fd\u548c\u517c\u5bb9\u6027\u3002<strong>.NET Core\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u5f00\u6e90\u6846\u67b6\u3001\u652f\u6301\u5bb9\u5668\u5316\u90e8\u7f72\u4e14\u62e5\u6709\u66f4\u597d\u7684\u6027\u80fd\uff0c\u800c.NET Framework\u662f\u4e00\u4e2a\u53ea\u80fd\u5728Windows\u4e0a\u8fd0\u884c\u7684\u6846\u67b6\uff0c\u652f\u6301\u4e30\u5bcc\u7684\u5e94\u7528\u7a0b\u5e8f\u7c7b\u578b\u548c\u670d\u52a1\uff0c\u4f46\u4e0d\u9002\u7528\u4e8e\u73b0\u4ee3\u7684\u3001\u8de8\u5e73\u53f0\u7684\u573a\u666f\u3002<\/strong> \u5176\u4e2d\uff0c\u8de8\u5e73\u53f0\u6027\u80fd\u662f.NET Core\u7684\u91cd\u8981\u7279\u6027\u4e4b\u4e00\uff0c\u5b83\u4e0d\u4ec5\u80fd\u591f\u8fd0\u884c\u5728Windows\u4e0a\uff0c\u8fd8\u652f\u6301\u5728MacOS\u548cLinux\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u8fd9\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u66f4\u5e7f\u9614\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8de8\u5e73\u53f0\u652f\u6301<\/h3>\n<\/p>\n<p><p>.NET Core\u7684\u8bbe\u8ba1\u521d\u8877\u4e4b\u4e00\u5c31\u662f\u63d0\u4f9b\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528.NET Core\u5728Windows\u3001Linux\u548cMacOS\u4e0a\u6784\u5efa\u548c\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u4e00\u70b9\u5bf9\u4e8e\u5e0c\u671b\u4ed6\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u80fd\u591f\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u65e0\u7f1d\u5de5\u4f5c\u7684\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u662f\u4e00\u4e2a\u975e\u5e38\u5438\u5f15\u4eba\u7684\u7279\u6027\u3002<\/p>\n<\/p>\n<p><p>\u76f8\u6bd4\u4e4b\u4e0b\uff0c.NET Framework\u4e3b\u8981\u9650\u5b9a\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u3002\u5c3d\u7ba1\u5176\u5728Windows\u4e0a\u63d0\u4f9b\u4e86\u5b8c\u6574\u4e14\u6210\u719f\u7684\u529f\u80fd\uff0c\u4f46\u8fd9\u79cd\u9650\u5236\u4f7f\u5f97\u5e94\u7528\u7a0b\u5e8f\u7684\u53ef\u79fb\u690d\u6027\u53d7\u5230\u9650\u5236\uff0c\u4e0d\u9002\u5408\u9700\u8981\u5728\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u90e8\u7f72\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6a21\u5757\u5316\u548c\u90e8\u7f72<\/h3>\n<\/p>\n<p><p>.NET Core\u91c7\u7528\u4e86\u6a21\u5757\u5316\u7684\u8bbe\u8ba1\uff0c\u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u5305\u542b\u6240\u9700\u7684.NET Core\u5e93\u548c\u4f9d\u8d56\u9879\uff0c\u800c\u65e0\u9700\u5b89\u88c5\u5b8c\u6574\u7684.NET Core\u8fd0\u884c\u65f6\u3002\u8fd9\u79cd\u6a21\u5757\u5316\u4f7f\u5f97.NET Core\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u8fdb\u884c\u81ea\u5305\u542b\u90e8\u7f72\uff08SCD\uff09\u6216\u6846\u67b6\u4f9d\u8d56\u90e8\u7f72\uff08FDD\uff09\u3002\u8fd9\u610f\u5473\u7740\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728\u4e0d\u4f9d\u8d56\u5168\u5c40\u5b89\u88c5\u8fd0\u884c\u65f6\u7684\u60c5\u51b5\u4e0b\u72ec\u7acb\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>.NET Framework\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u4f9d\u8d56\u4e8e\u7cfb\u7edf\u7ea7\u7684\u8fd0\u884c\u65f6\u5b89\u88c5\u3002\u8fd9\u610f\u5473\u7740\u5728\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u76ee\u6807\u673a\u5668\u4e0a\u5b89\u88c5\u4e86\u6b63\u786e\u7248\u672c\u7684.NET Framework\u3002\u8fd9\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7248\u672c\u51b2\u7a81\u548c\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u6027\u80fd\u4f18\u5316<\/h3>\n<\/p>\n<p><p>.NET Core\u5728\u6027\u80fd\u65b9\u9762\u8fdb\u884c\u4e86\u5927\u91cf\u4f18\u5316\u3002<strong>\u5b83\u91c7\u7528\u4e86\u65b0\u7684JIT\u7f16\u8bd1\u5668\u548c\u57fa\u7840\u7c7b\u5e93\uff0c\u8fd9\u63d0\u4f9b\u4e86\u66f4\u5feb\u7684\u5e94\u7528\u542f\u52a8\u65f6\u95f4\u548c\u66f4\u9ad8\u7684\u541e\u5410\u91cf\u3002<\/strong> \u6b64\u5916\uff0c.NET Core\u8fd8\u652f\u6301\u66f4\u9ad8\u6548\u7684\u5783\u573e\u6536\u96c6\u673a\u5236\u548c\u66f4\u597d\u7684\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b\uff0c\u8fd9\u5bf9\u4e8e\u6784\u5efa\u53ef\u4f38\u7f29\u7684\u9ad8\u6027\u80fd\u5e94\u7528\u7a0b\u5e8f\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><p>.NET Framework\u867d\u7136\u4e5f\u5728\u6301\u7eed\u8fdb\u884c\u6027\u80fd\u4f18\u5316\uff0c\u4f46\u7531\u4e8e\u5176\u5386\u53f2\u60a0\u4e45\u7684\u4ee3\u7801\u57fa\u7840\uff0c\u67d0\u4e9b\u6027\u80fd\u6539\u8fdb\u53ef\u80fd\u65e0\u6cd5\u4e0e.NET Core\u76f8\u63d0\u5e76\u8bba\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u517c\u5bb9\u6027\u548c\u793e\u533a<\/h3>\n<\/p>\n<p><p>\u867d\u7136.NET Core\u81f4\u529b\u4e8e\u4e0e.NET Framework\u4fdd\u6301\u5c3d\u53ef\u80fd\u7684\u517c\u5bb9\u6027\uff0c\u4f46\u7531\u4e8e\u5b83\u7684\u8de8\u5e73\u53f0\u6027\u548c\u6a21\u5757\u5316\u67b6\u6784\uff0c\u67d0\u4e9b.NET Framework\u7684\u529f\u80fd\u548c\u5e93\u5728.NET Core\u4e2d\u53ef\u80fd\u65e0\u6cd5\u4f7f\u7528\u3002\u4f8b\u5982\uff0cWindows\u7279\u5b9a\u7684\u529f\u80fd\uff0c\u5982Windows Forms\u548cWPF\uff0c\u4ec5\u5728.NET Framework\u4e2d\u53ef\u7528\uff0c\u867d\u7136\u5728\u540e\u6765\u7684.NET Core\u7248\u672c\u4e2d\u5df2\u5f00\u59cb\u5f15\u5165\u5bf9\u8fd9\u4e9b\u6280\u672f\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<p><p>.NET Framework\u62e5\u6709\u4e00\u4e2a\u975e\u5e38\u5e9e\u5927\u548c\u6210\u719f\u7684\u793e\u533a\uff0c\u62e5\u6709\u5927\u91cf\u73b0\u6210\u7684\u5e93\u548c\u6846\u67b6\uff0c\u8fd9\u5bf9\u4e8e\u90a3\u4e9b\u9700\u8981\u7a33\u5b9a\u6027\u548c\u5e7f\u6cdb\u884c\u4e1a\u652f\u6301\u7684\u4f01\u4e1a\u5e94\u7528\u7a0b\u5e8f\u6765\u8bf4\u81f3\u5173\u91cd\u8981\u3002\u800c.NET Core\u7531\u4e8e\u662f\u76f8\u5bf9\u8f83\u65b0\u7684\u6846\u67b6\uff0c\u867d\u7136\u6b63\u5728\u5feb\u901f\u589e\u957f\uff0c\u4f46\u5176\u793e\u533a\u548c\u53ef\u7528\u8d44\u6e90\u53ef\u80fd\u4e0d\u5982.NET Framework\u4e30\u5bcc\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001API\u548c\u529f\u80fd\u96c6<\/h3>\n<\/p>\n<p><p>.NET Core\u63d0\u4f9b\u4e86\u4e00\u4e2a\u66f4\u7cbe\u7b80\u7684API\u96c6\u3002\u5b83\u53bb\u9664\u4e86\u4e00\u4e9b\u8fc7\u65f6\u6216\u4e0d\u5e38\u7528\u7684API\uff0c\u800c\u4e13\u6ce8\u4e8e\u6838\u5fc3\u529f\u80fd\u3002\u8fd9\u4e00\u70b9\u5728\u79fb\u690d\u5927\u578b.NET Framework\u5e94\u7528\u7a0b\u5e8f\u5230.NET Core\u65f6\u53ef\u80fd\u4f1a\u5f15\u53d1\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u4f46\u540c\u65f6\u4e5f\u51cf\u5c11\u4e86\u6846\u67b6\u7684\u6574\u4f53\u590d\u6742\u6027\u548c\u63d0\u9ad8\u4e86\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u4e0e\u6b64\u76f8\u53cd\uff0c.NET Framework\u4f5c\u4e3a\u4e00\u4e2a\u5386\u53f2\u60a0\u4e45\u7684\u5e73\u53f0\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5168\u9762\u548c\u5e7f\u6cdb\u7684API\u96c6\u3002\u8fd9\u4f7f\u5f97\u5b83\u9002\u7528\u4e8e\u5404\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u62ec\u684c\u9762\u5e94\u7528\u3001Web\u670d\u52a1\u548c\u66f4\u591a\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u66f4\u65b0\u548c\u652f\u6301<\/h3>\n<\/p>\n<p><p>.NET Core\u91c7\u53d6\u4e86\u66f4\u5feb\u7684\u53d1\u5e03\u5468\u671f\uff0c\u53ef\u4ee5\u66f4\u5feb\u5730\u5f97\u5230\u65b0\u7279\u6027\u548c\u4fee\u8ba2\u3002\u5b83\u652f\u6301\u4fa7\u52a0\u8f7d\uff0c\u610f\u5473\u7740\u53ef\u4ee5\u5728\u540c\u4e00\u7cfb\u7edf\u4e0a\u8fd0\u884c\u591a\u4e2a\u7248\u672c\u7684.NET Core\uff0c\u8fd9\u5bf9\u4e8e\u6d4b\u8bd5\u548c\u5347\u7ea7\u5e94\u7528\u7a0b\u5e8f\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><p>.NET Framework\u5219\u5728\u4e0d\u540c\u7684\u72b6\u51b5\u4e0b\u91c7\u53d6\u4e86\u66f4\u4e3a\u7a33\u5b9a\u7684\u66f4\u65b0\u7b56\u7565\u3002\u7531\u4e8e\u591a\u5e74\u6765\u5728\u4f01\u4e1a\u7ea7\u5e94\u7528\u4e2d\u7684\u6df1\u5ea6\u96c6\u6210\uff0c\u5feb\u901f\u66f4\u6539\u53ef\u80fd\u4f1a\u5e26\u6765\u517c\u5bb9\u6027\u95ee\u9898\u3002\u8fd9\u5c31\u9700\u8981\u5728\u6dfb\u52a0\u65b0\u529f\u80fd\u7684\u540c\u65f6\uff0c\u66f4\u52a0\u8c28\u614e\u5730\u8003\u8651\u73b0\u6709\u5e94\u7528\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u6700\u7ec8\u9009\u62e9<\/h3>\n<\/p>\n<p><p>\u9009\u62e9.NET Core\u8fd8\u662f.NET Framework\uff0c\u5f88\u5927\u7a0b\u5ea6\u4e0a\u53d6\u51b3\u4e8e\u7279\u5b9a\u7684\u9879\u76ee\u9700\u6c42\u3002\u5982\u679c\u662f\u6784\u5efa\u65b0\u7684\u3001\u8de8\u5e73\u53f0\u6216\u5fae\u670d\u52a1\u67b6\u6784\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c<strong>.NET Core\u56e0\u5176\u6027\u80fd\u548c\u7075\u6d3b\u6027\u4f18\u52bf\u901a\u5e38\u662f\u66f4\u597d\u7684\u9009\u62e9\u3002<\/strong> \u5bf9\u4e8e\u4f9d\u8d56Windows\u7279\u5b9a\u529f\u80fd\u6216\u9700\u8981\u4e0e\u5927\u91cf\u73b0\u6709\u7684.NET Framework\u5e93\u96c6\u6210\u7684\u73b0\u6709\u5e94\u7528\u7a0b\u5e8f\uff0c\u7ee7\u7eed\u4f7f\u7528.NET Framework\u53ef\u80fd\u66f4\u6709\u610f\u4e49\u3002<\/p>\n<\/p>\n<p><p>\u5728\u8bb8\u591a\u573a\u666f\u4e2d\uff0c\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\u548c\u6280\u672f\u7684\u53d1\u5c55\uff0c\u66f4\u591a\u5f00\u53d1\u8005\u503e\u5411\u4e8e\u9009\u62e9.NET Core\u4f5c\u4e3a\u4ed6\u4eec\u7684\u4e3b\u8981\u5f00\u53d1\u6846\u67b6\u3002\u5fae\u8f6f\u7684\u957f\u671f\u652f\u6301\u548c\u5bf9.NET Core\u7684\u6301\u7eed\u6295\u8d44\u4e5f\u5728\u9f13\u52b1\u7528\u6237\u5411\u8fd9\u4e00\u8f83\u65b0\u7684\u6846\u67b6\u8fc7\u6e21\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u4ec0\u4e48\u662f.NET Core\u548c.NET Framework\uff1f\u5b83\u4eec\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/strong><\/p>\n<ul>\n<li><strong>.NET Core\u548c.NET Framework\u4e4b\u95f4\u6709\u54ea\u4e9b\u7279\u6027\u4e0a\u7684\u5dee\u5f02\uff1f<\/strong>.NET Core\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u6846\u67b6\uff0c\u53ef\u4ee5\u5728Windows\u3001Linux\u548cmacOS\u7b49\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u800c.NET Framework\u5219\u4e3b\u8981\u7528\u4e8eWindows\u5e73\u53f0\u3002\u6b64\u5916\uff0c.NET Core\u662f\u5f00\u6e90\u7684\uff0c\u800c.NET Framework\u5219\u662f\u5fae\u8f6f\u7684\u4e13\u6709\u6846\u67b6\u3002<\/li>\n<li><strong>NET Core\u548c.NET Framework\u6709\u54ea\u4e9b\u7f16\u7a0b\u8bed\u8a00\u7684\u652f\u6301\uff1f<\/strong>.NET Core\u652f\u6301C#\u3001F#\u548cVB.NET\u7b49\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u800c.NET Framework\u4e3b\u8981\u652f\u6301C#\u548cVB.NET\u3002<\/li>\n<li><strong>.NET Core\u548c.NET Framework\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\u53d1\u5e03\u6709\u4f55\u4e0d\u540c\uff1f<\/strong>.NET Core\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u4ee5\u4e09\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u53d1\u5e03\uff1a\u81ea\u5305\u542b\u90e8\u7f72\u3001\u53ef\u4f9d\u8d56\u9879\u90e8\u7f72\u548c\u5bb9\u5668\u5316\u90e8\u7f72\u3002\u800c.NET Framework\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u5728\u76ee\u6807\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u5bf9\u5e94\u7248\u672c\u7684.NET Framework\u8fd0\u884c\u65f6\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":".NET Core\u548c.NET Framework\u7684\u4e3b\u8981\u533a\u522b\u5728\u4e8e\u5b83\u4eec\u7684\u5e73\u53f0\u652f\u6301\u3001\u90e8\u7f72\u6a21\u5f0f\u3001\u6027\u80fd\u548c\u517c\u5bb9\u6027\u3002.NET [&hellip;]","protected":false},"author":3,"featured_media":108937,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/108935"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=108935"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/108935\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/108937"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=108935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=108935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=108935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}