首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >Azure连接Nuget还原和Nuget包的VSBuild

Azure连接Nuget还原和Nuget包的VSBuild
EN

Stack Overflow用户
提问于 2020-01-09 14:44:09
回答 2查看 4.5K关注 0票数 1

到目前为止,我有一个非常基本的构建管道。

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://learn.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4

trigger:
- testing-build-yml-1

pool:
  vmImage: 'windows-latest'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
  inputs:
    restoreSolution: '$(solution)'
    # packagesDirectory: '..\packages'
    restoreDirectory: '..\new_packages'

- task: VSBuild@1
  inputs:
    solution: '$(solution)'
    #msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
    msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)" /p:ReferencePath="d:\a\1\new_packages"'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

我正在尝试Nuget还原任务,以便将包恢复到..\new_packages目录,然后希望VSBuild任务将从那里获取它们并构建解决方案。

Nuget还原执行以下命令(全部位于一行)

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin\msbuild.exe 
  "C:\Users\VssAdministrator\AppData\Local\Temp\NuGetScratch\jgtjjpe0.nac.nugetinputs.targets" 
  /t:GenerateRestoreGraphFile 
   /nologo 
   /nr:false 
   /v:q 
  /p:NuGetRestoreTargets="C:\Users\VssAdministrator\AppData\Local\Temp\NuGetScratch\whba0xm4.c0f.nugetrestore.targets" 
  /p:RestoreUseCustomAfterTargets="True" /p:RestoreTaskAssemblyFile="C:\hostedtoolcache\windows\NuGet\5.4.0\x64\nuget.exe" 
  /p:RestoreSolutionDirectory="D:\a\1\s\\" 
  /p:RestoreConfigFile="D:\a\1\Nuget\tempNuGet_105.config" 
  /p:RestorePackagesPath="..\new_packages" 
  /p:SolutionDir="D:\a\1\s\\" 
  /p:SolutionName="XYZ"

然后VSBuild任务运行msbuild (全部在一行中)

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" 
 "D:\a\1\s\XYZ.sln" 
   /nologo 
   /nr:false 
   /dl:CentralLogger,
 "D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.161.2\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";
 "RootDetailId=e5869970-8e7b-4a06-a8fd-f0662f639a6d|SolutionDir=D:\a\1\s"*ForwardingLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.161.2\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"
 /p:DeployOnBuild=true 
 /p:WebPublishMethod=Package 
 /p:PackageAsSingleFile=true 
 /p:SkipInvalidConfigurations=true 
 /p:PackageLocation="D:\a\1\a" 
 /p:ReferencePath="d:\a\1\new_packages" 
 /p:platform="Any CPU" 
 /p:configuration="Release" 
 /p:VisualStudioVersion="16.0" 
 /p:_MSDeployUserAgent="VSTS_607486bc-2d64-463d-9a7f-0cf06fe82263_build_16_0"

该解决方案查看/p:ReferencePath="d:\a\1\new_packages中指定的适当目录。

但是它仍然找不到Nuget包的任何dll,最终构建失败了。

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
    Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 1/9/2020 10:11:18 PM.
Project "D:\a\1\s\XYZ.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|Any CPU".
Project "D:\a\1\s\XYZ.sln" (1) is building "D:\a\1\s\ServiceLayer\InputOutputServiceLayer.csproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "bin\Release\".
  Creating directory "obj\Release\".
ResolveAssemblyReferences:
  Primary reference "EPPlus, Version=4.5.3.2, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL".
##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "EPPlus, Version=4.5.3.2, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "EPPlus, Version=4.5.3.2, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\a\1\s\ServiceLayer\InputOutputServiceLayer.csproj]
          For SearchPath "d:\a\1\new_packages".
          Considered "d:\a\1\new_packages\EPPlus.winmd", but it didn't exist.
          Considered "d:\a\1\new_packages\EPPlus.dll", but it didn't exist.
          Considered "d:\a\1\new_packages\EPPlus.exe", but it didn't exist.
          For SearchPath "{HintPathFromItem}".
          Considered "D:\a\1\s\packages\EPPlus.4.5.3.2\lib\net40\EPPlus.dll", but it didn't exist.

从技术上讲,我知道我们不应该硬编码一个/p:ReferencePath=..,但我只是想让它开始工作。

如果没有该VSBuild任务,似乎根本不知道在哪里查找。

它看上去

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
 ResolveAssemblyReferences:
  Primary reference "EPPlus, Version=4.5.3.2, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL".
##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "EPPlus, Version=4.5.3.2, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "EPPlus, Version=4.5.3.2, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\ServiceLayer\InputOutputServiceLayer.csproj]
          For SearchPath "..\d:\a\1\a".
          Considered "..\d:\a\1\a\EPPlus.winmd", but it didn't exist.
          Considered "..\d:\a\1\a\EPPlus.dll", but it didn't exist.
          Considered "..\d:\a\1\a\EPPlus.exe", but it didn't exist.
          For SearchPath "{HintPathFromItem}".
          Considered "d:\a\1\s\packages\EPPlus.4.5.3.2\lib\net40\EPPlus.dll", but it didn't exist.
          For SearchPath "{TargetFrameworkDirectory}".
          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\EPPlus.winmd", but it didn't exist.

使用旧的管道使用方式也存在类似的问题。

MsBuild does not find restored NuGet-Packages on Visual Studio Online

他们的解决方案(虽然讨厌)对我也不起作用。

如果删除EPPlus包,下一个包Entity Framework将产生相同的错误。

如果删除Entity Framework,下一个包将产生相同的错误。

我只是试图找到一个真正的解决方案,这不涉及这些硬编码的黑客(..and工作,显然)

编辑:

工作,怪怪的多亏了Leo Liu-MSFT

我的答案在那个下面。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-01-10 01:22:08

Azure连接Nuget还原和Nuget包的VSBuild

除非您修改项目文件中的HintPath,否则恐怕无法使其工作。

当您将还原到..\new_packages目录的nuget包更改后,新目录中的包应该具有以下结构级别:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
d:\a\1\new_packages\EPPlus.4.5.3.2\lib\net40\EPPlus.dll

dll文件以nuget包的形式存储在新目录中,而不是直接存储在新目录.中。

因此,当您在构建项目期间指定/p:ReferencePath="d:\a\1\new_packages"时,VS将直接从ReferencePath中找到dll文件。您收到错误消息的原因是:

认为"d:\a\1\new_packages\EPPlus.dll“

实际上,dll路径应该是d:\a\1\new_packages\EPPlus.4.5.3.2\lib\net40。由于此路径与包的名称和版本都相关,因此不能使用一个参数来指定多个dlls的路径。

在这种情况下,我们必须修改项目文件中的HintPath

正确的过程是更改repositoryPath文件中的nuget.config文件以更改本地的nuget包目录:

Is it possible to change the location of packages for NuGet?

然后使用packages控制台中的命令行Update-Package -reinstall强制将包引用重新安装到本地上的项目中,它将更新所有包的HintPath,然后将更改提交给源代码管理。然后,我们可以使用Nuget还原任务将包恢复到..\new_packages目录。

希望这能有所帮助。

票数 2
EN

Stack Overflow用户

发布于 2020-01-13 09:34:03

我让它工作了,但有一些怪癖(和特征?)也很少有悬而未决的问题。

请参阅上面的/users/7460777/leo-liu-msft,以了解采取这些步骤的原因。

正如Leo所提到的,这与HintPath在使用packages.config的项目中没有正确更新有关。

为了完全避免这个问题,

将尽可能多的项目迁移到<PackageReference />,而不是使用packages.config。要做到这一点,右键单击每个项目中的References,应该有一个选项。

有些项目(例如,我的例子中的->,我的asp.net (.net框架).net Web客户端)无法迁移。

(.我会在后面添加更多的细节)

更新:

(https://devblogs.microsoft.com/nuget/migrate-packages-config-to-package-reference/)

(https://github.com/NuGet/Home/issues/5877)

下一步:--

1)在包含.sln文件的顶层文件夹中,创建了以下nuget.config文件。

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="repositoryPath" value=".\packages" />
  </config>
</configuration>

因为我的packages目录在这里。

2)更新后的build.yml如下。

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://learn.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4

trigger:
- testing-build-yml

pool:
  vmImage: 'windows-latest'

variables:
  solution: '**/*.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
  inputs:
    restoreSolution: '$(solution)'
    packagesdirectory: '.\packages'

- task: VSBuild@1
  inputs:
    solution: '$(solution)'
    msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

3) 下面的步骤使一切都开始工作,但我仍然不知道为什么。

我删除了packages文件夹中的所有内容,基本上只是将这些删除推到上游。Nuget还原任务完成了还原,VSBuild任务成功。

我还不确定的事情.

1)为什么会创建一个临时的Nuget.config文件,即使我清楚地说明了它的存在位置?

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
Saving NuGet.config to a temporary config file.
[command]C:\hostedtoolcache\windows\NuGet\5.4.0\x64\nuget.exe sources Add -NonInteractive -Name NuGetOrg -Source https://api.nuget.org/v3/index.json -ConfigFile d:\a\1\Nuget\tempNuGet_140.config
Package source with Name: NuGetOrg added successfully.
[command]C:\hostedtoolcache\windows\NuGet\5.4.0\x64\nuget.exe restore d:\a\1\s\XYZ.sln -PackagesDirectory .\packages -Verbosity Detailed -NonInteractive -ConfigFile d:\a\1\Nuget\tempNuGet_140.config
NuGet Version: 5.4.0.6315
MSBuild auto-detection: using msbuild version '16.4.0.56107' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
MSBuild P2P timeout [ms]: 120000
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin\msbuild.exe 
"C:\Users\VssAdministrator\AppData\Local\Temp\NuGetScratch\0eie04ka.4ch.nugetinputs.targets" /t:GenerateRestoreGraphFile /nologo /nr:false /v:q /p:NuGetRestoreTargets="C:\Users\VssAdministrator\AppData\Local\Temp\NuGetScratch\y3ui4hhz.gfr.nugetrestore.targets" /p:RestoreUseCustomAfterTargets="True" /p:RestoreTaskAssemblyFile="C:\hostedtoolcache\windows\NuGet\5.4.0\x64\nuget.exe" /p:RestoreSolutionDirectory="d:\a\1\s\\" /p:RestoreConfigFile="d:\a\1\Nuget\tempNuGet_140.config" /p:RestorePackagesPath=".\packages" /p:SolutionDir="d:\a\1\s\\" /p:SolutionName="XYZ"

2)为什么删除包使其工作,同时提交包使它无法找到任何dll文件,即使它看正确的位置?

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
Primary reference "NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL".
##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\a\1\s\XYZ_WebClient\XYZ_WebClient.csproj]
          For SearchPath "{HintPathFromItem}".
          Considered "D:\a\1\s\packages\NLog.4.6.7\lib\net45\NLog.dll", but it didn't exist.
          For SearchPath "{TargetFrameworkDirectory}".
          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\NLog.winmd", but it didn't exist.
          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\NLog.dll", but it didn't exist.
          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\NLog.exe", but it didn't exist.
          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\Facades\NLog.winmd", but it didn't exist.
          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\Facades\NLog.dll", but it didn't exist.
          Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\Facades\NLog.exe", but it didn't exist.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59673188

复制
相关文章
RESTful Web服务
假设需要为users资源创建Web服务,users资源包括id、name和age等属性。获取或改变users资源的方式如下:
SmileNicky
2019/01/17
6630
使用 RESTful Web 服务
本指南将引导您完成创建使用#spring# #spring认证# RESTful Web 服务的应用程序的过程。
IT胶囊
2022/09/06
1.9K2
使用 RESTful Web 服务
什么是 RESTful Web服务
总结就是: 上面的提到的特点,可以总结为“ 用明确的方法 操作 语义清晰的资源,来呈现不同的资源表现形式”。
张云飞Vir
2020/04/24
3K0
Spring Boot使用RESTful Web服务
本章将详细讨论和学习如何使用jQuery AJAX来调用RESTful Web服务。
黑洞代码
2021/09/03
1.4K0
Spring Boot使用RESTful Web服务
使用 Spring 构建 RESTful Web 服务
本指南将引导您完成使用 Spring 创建“Hello, World”RESTful Web 服务的过程。
IT胶囊
2021/09/14
1.3K0
使用 Spring 构建 RESTful Web 服务
Spring Boot构建RESTful Web服务
Spring Boot为为企业应用程序构建RESTful Web服务提供了非常好的支持。本章将详细介绍如何使用Spring Boot构建RESTful Web服务。
黑洞代码
2021/08/05
8210
WebService系列之RESTful Web服务
假设需要为users资源创建Web服务,users资源包括id、name和age等属性。获取或改变users资源的方式如下:
SmileNicky
2022/05/07
4470
WebService系列之RESTful Web服务
RESTful API教程:学习关键的Web服务设计原则
原题:RESTful APIs tutorial: Learn key web service design principles
yuanyi928
2018/09/14
1.8K0
RESTful API教程:学习关键的Web服务设计原则
分布式开发、基于Restful的WEB服务如何实现?
那么既然说到了分布式的开发,那么所有的开发者一定都会立刻联想到一个词:“慢”,对于传统的WEB服务开发(AXIS、XFire、CXF等),而且在编写的时候需要编写一大堆的客户端代码,这样对于整个程序的开发的复杂度还是非常高的,可是在实际的开发之中,如果你作为一个架构师,一定不可能将你一个项目的所有的子系统都设计为一个,中间一定会拆分成若干个子系统,于是这个若干个子系统之间如果要想进行数据的交互处理,只能够使用RPC。
爱明依
2019/03/12
5960
Spring认证指南:了解如何使用 Spring 的 RESTful Web 服务
原标题:Spring认证中国教育管理中心-了解如何使用 Spring 的 RESTful Web 服务(Spring中国教育管理中心)
IT胶囊
2022/01/25
8640
Spring认证指南:了解如何使用 Spring 的 RESTful Web 服务
为什么应该使用RESTful Web服务设计
你可能负责一个API。也许你正准备投入制作一个,并且很期待开始。但是要小心,因为好的API设计可能很难。
程序你好
2018/09/29
1.5K0
Web 开发 RESTful
Flask 的 RESTful 模块是 flask-restful ,使用 pip 安装:
HLee
2021/04/08
1.1K0
Web 开发 RESTful
RESTful web service
REST架构就是为了HTTP协议设计的。RESTful web services的核心概念是管理资源。资源是由URIs来表示,客户端使用HTTP当中的’POST, OPTIONS, GET, PUT, DELETE’等方法发送请求到服务器,改变相应的资源状态。
DuncanZhou
2018/09/04
3580
用python创建一个简单的restful风格的web服务应用
使用python创建一个简单的restful风格的webservice应用 摘要 本文介绍使用python创建一个简单的restful风格的webservice应用,原文地址http://www.d
杨永贞
2020/08/04
7470
用python创建一个简单的restful风格的web服务应用
我所理解的RESTful Web API [Web标准篇]
REST不是一个标准,而是一种软件应用架构风格。基于SOAP的Web服务采用RPC架构,如果说RPC是一种面向操作的架构风格,而REST则是一种面向资源的架构风格。REST是目前业界更为推崇的构建新一代Web服务(或者Web API)的架构风格。由于REST仅仅是一种价格风格,所以它是与具体的技术平台无关的,也就是说采用REST架构的应用未必一定建立在Web之上,所以在正式介绍REST之前,我们先来简单认识一下Web。 目录 一、TCP/IP与HTTP 二、Web资源    
蒋金楠
2018/01/15
1.2K0
我所理解的RESTful Web API [Web标准篇]
关于web前端大作业的HTML网页设计——我的班级网页HTML+CSS+JavaScript
✍️ 作者简介: 一个热爱把逻辑思维转变为代码的技术博主 💂 作者主页: 【主页——🚀获取更多优质源码】 🎓 web前端期末大作业: 【📚毕设项目精品实战案例 (1000套) 】 🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (110套) 】 🌎超炫酷的Echarts大屏可视化源码:【🔰 echarts大屏展示大数据平台可视化(150套) 】 🎁 免费且实用的WEB前端学习指南: 【📂web前端零基础到高级学习视频教程 120G干货分享】 🥇 关于作者: 历任研发工程师,技
IT司马青衫
2022/08/15
1.8K0
关于web前端大作业的HTML网页设计——我的班级网页HTML+CSS+JavaScript
我所理解的RESTful Web API [设计篇]
《我所理解的RESTful Web API [Web标准篇]》Web服务已经成为了异质系统之间的互联与集成的主要手段,在过去一段不短的时间里,Web服务几乎清一水地采用SOAP来构建。构建REST风格的Web服务是最近两三年风行的潮流,所以很多人以为REST是一个事物。而事实却是:REST自其诞生之日起到现在(2014年)已经有14年了,它为什么叫这么一个“奇怪”的名字呢? 目录 一、为什么叫这个“奇怪”的名字?二、采用URI标识资源 二、采用URI标识资源 三、使
蒋金楠
2018/01/15
1K0
我所理解的RESTful Web API [设计篇]
ASP.NET Core RESTful Web服务开发教程
在本文中,我将逐步解释如何在ASP.NET Core中开发基于RESTful的Web服务应用程序。ASP.NET Core是微软最新发布的技术,比之前的WCF和Web API要好得多。
程序你好
2018/09/29
7.8K0
ASP.NET Core RESTful Web服务开发教程
Restful Web Service(十)
是一种通信方式,可以传递信息,它的特点是 无状态、独立性的(意味着系统做了拆分?)
高大北
2022/06/14
1910
基于RESTful的FastAPI服务模板
FastAPI 是一个高性能 Web 框架,也是一个Python包,用于构建 API,适合利用极少的代码搭建服务器后端,实现前后端分离。
里克贝斯
2021/05/21
7700
基于RESTful的FastAPI服务模板

相似问题

如何通过javascript从html页面调用RESTful web服务的函数

11

来自IOS上的html的RESTFul web服务

24

RESTful web服务url html vs json

34

RESTful web服务

30

RESTful web服务

12
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文