Update to .NET 8 preview 1 build (#19194)

This commit is contained in:
Aditya Patwardhan 2023-02-22 16:12:16 -08:00 committed by GitHub
parent 79b4b5c33f
commit 2d15e0c5b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
44 changed files with 299 additions and 90 deletions

View File

@ -1,7 +1,6 @@
<Project>
<ItemGroup>
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.0" PrivateAssets="all" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.406" PrivateAssets="all" />
</ItemGroup>
</Project>

View File

@ -1,9 +1,9 @@
{
"sdk": {
"channel": "7.0.1xx",
"channel": "8.0.1xx-preview1",
"quality": "daily",
"qualityFallback": "preview",
"packageVersionPattern": "7.0.1",
"packageVersionPattern": "8.0.0-preview.1",
"sdkImageVersion": "7.0.101",
"nextChannel": "7.0.1xx-rc2",
"azureFeed": "",

View File

@ -138,8 +138,8 @@
<Company>Microsoft Corporation</Company>
<Copyright>(c) Microsoft Corporation.</Copyright>
<TargetFramework>net7.0</TargetFramework>
<LangVersion>10.0</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>11.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

View File

@ -218,9 +218,6 @@
<Component Id="cmpC3FFE4945C208FFF74B59235DE2524CF">
<File Id="fil4218FAC2CC51817C686AF14AAC6FEDA3" KeyPath="yes" Source="$(var.ProductSourcePath)\System.Security.Principal.Windows.dll" />
</Component>
<Component Id="cmp15AFF93E2D617D9DE5CDC199C300E4DD">
<File Id="filD9E55D71A3E7EAD811149113EBD9C56E" KeyPath="yes" Source="$(var.ProductSourcePath)\System.ServiceModel.dll" />
</Component>
<Component Id="cmpB3D5B3B0C9FE6C6A76115D09B1099682">
<File Id="filB0A2D715ECAE6A71E58D5620117DC4B4" KeyPath="yes" Source="$(var.ProductSourcePath)\System.Security.Claims.dll" />
</Component>
@ -1602,6 +1599,18 @@
<Component Id="cmp5B67AE2852E04C26970FD2016CA76E07">
<File Id="fil42D10EBCB41B426BAFBF26BB053A9E84" KeyPath="yes" Source="$(var.ProductSourcePath)\cs\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmpC3F54880CBB64FF180FB951F7B380C5E">
<File Id="filBE13564D3087436A834D9BABDDC631AD" KeyPath="yes" Source="$(var.ProductSourcePath)\cs\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmpE4A52AE4B2CA401C84940802D2DB2684">
<File Id="fil19FDE56700AD41828BC3B5A0A020E419" KeyPath="yes" Source="$(var.ProductSourcePath)\cs\System.ServiceModel.Http.resources.dll" />
</Component>
<Component Id="cmp32BFC7F61D9F4130AF222B10DC8EEE66">
<File Id="filD52C194E895E4E608D93BD5B92611C05" KeyPath="yes" Source="$(var.ProductSourcePath)\cs\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmpDF77BEE4A18A427DBEC333AEA0FA3B25">
<File Id="fil471D7C0B869A447A97C1B40F21138F15" KeyPath="yes" Source="$(var.ProductSourcePath)\cs\System.ServiceModel.NetTcp.resources.dll" />
</Component>
</Directory>
<Directory Id="dirEA0127D6607E68B508B9DB9CE315A2CE" Name="de">
<Component Id="cmpF2941A91B17EEA22CD6DAB34693D9AC0">
@ -1667,6 +1676,18 @@
<Component Id="cmp777DF202EF2542F2ACFCCF0481E8D6EE">
<File Id="filFCCE95BFDDD540E1AA243049872EF5D0" KeyPath="yes" Source="$(var.ProductSourcePath)\de\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmpFB14FF1397DB48518A3132FA83C8B4F9">
<File Id="fil034261F07AC7424BAE760772992132D4" KeyPath="yes" Source="$(var.ProductSourcePath)\de\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmp7EB53DC3075E42B3AF8E4F15ED18E07B">
<File Id="fil050A96224A5A47E790B9EDEC80A112C7" KeyPath="yes" Source="$(var.ProductSourcePath)\de\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmpC82ADA598A4C4A4D91F9F017FDAA4E4C">
<File Id="fil1ED2F349DA0149119EBBCB12D6A16B54" KeyPath="yes" Source="$(var.ProductSourcePath)\de\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmp3427AEDFF2FC43F690BBB400A41068A6">
<File Id="filC5FCAC8F1160415C8E1FB43834924909" KeyPath="yes" Source="$(var.ProductSourcePath)\de\System.ServiceModel.Http.resources.dll" />
</Component>
</Directory>
<Directory Id="dir5B65D7353FBDCD17AB60A674B3FDF93B" Name="es">
<Component Id="cmpBEB5F3CF75675537751F0D0B32125BF1">
@ -1732,6 +1753,18 @@
<Component Id="cmpF96C036EAE3B436DB096888697193FAF">
<File Id="fil761ECB84FAFA4674AB5712669532C569" KeyPath="yes" Source="$(var.ProductSourcePath)\es\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmp4F5357A0A35842AD9D8EFE6EA102D55B">
<File Id="filD7F6F49F08C14EDC905FA5ED3BCF59BD" KeyPath="yes" Source="$(var.ProductSourcePath)\es\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmp59A584790A4747D9A6B694A828F0F271">
<File Id="fil1CCC9C4247874D55B9372CBEE9A186CF" KeyPath="yes" Source="$(var.ProductSourcePath)\es\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmpC37345F1D2C74563B5C19CC61B5946F9">
<File Id="fil76B6C124BC3C453D8AC7C2C8A57E7484" KeyPath="yes" Source="$(var.ProductSourcePath)\es\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmp66FEF9DB38B344179CD555D53DA40EDF">
<File Id="filE7495956A2B640A6877FE8E4E60AB774" KeyPath="yes" Source="$(var.ProductSourcePath)\es\System.ServiceModel.Http.resources.dll" />
</Component>
</Directory>
<Directory Id="dir23063512FA8C884E1B4F08FDF0A44516" Name="fr">
<Component Id="cmp1DEB513A065956086898BCDACC5887B6">
@ -1797,6 +1830,18 @@
<Component Id="cmp789F545EA2CB4AC5A2688CF730A5F6B4">
<File Id="fil70A83BE26FCF4905B220521A6B75198D" KeyPath="yes" Source="$(var.ProductSourcePath)\fr\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmpB2CF2044807642BE99F60F6A73861322">
<File Id="fil9AC58E261C544AC3A2BE55794801D7A5" KeyPath="yes" Source="$(var.ProductSourcePath)\fr\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmp06573E36E2724AE8BC570ED8E8EA3518">
<File Id="fil165365DE6DA64FE48D38C970E1492EB2" KeyPath="yes" Source="$(var.ProductSourcePath)\fr\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmpB8F155950D0B49AFAF1F9DB13DC7D46A">
<File Id="fil9656CDE4F24B4C79A0AF42A49C3241EB" KeyPath="yes" Source="$(var.ProductSourcePath)\fr\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmpDDF430E1B0C0481698106AFB631C5151">
<File Id="filF7CB71884521491FB64959BB3E09D53F" KeyPath="yes" Source="$(var.ProductSourcePath)\fr\System.ServiceModel.Http.resources.dll" />
</Component>
</Directory>
<Directory Id="dir42B03840AE19D1498CC524F2B6C0389D" Name="it">
<Component Id="cmp3EC91B8BF4282E77113321E5D1ED27B2">
@ -1862,6 +1907,18 @@
<Component Id="cmp0173AE0CBFA44C269D93361F6C98F99B">
<File Id="fil3767F5D3C1264EC596A9F335355521C6" KeyPath="yes" Source="$(var.ProductSourcePath)\it\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmpD591955F539048029CD4F537EA96DF0A">
<File Id="filE5587664406545BEAAC608BA1BF40B6B" KeyPath="yes" Source="$(var.ProductSourcePath)\it\System.ServiceModel.Http.resources.dll" />
</Component>
<Component Id="cmp7E36202F1EDE4750A0B4A5E80A5CD87B">
<File Id="fil39EC1D9B807943D9B2BBBC95F5A55292" KeyPath="yes" Source="$(var.ProductSourcePath)\it\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmpB374323E62D1426DBEE2699E61585E74">
<File Id="fil23E6E11B260A45BF93AAC93EB538B035" KeyPath="yes" Source="$(var.ProductSourcePath)\it\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmpE5FC35D210CB4E76B87F65D179AEB74E">
<File Id="filDAF3C12FB79344ABAE1DCCEBB1F181FF" KeyPath="yes" Source="$(var.ProductSourcePath)\it\System.ServiceModel.NetTcp.resources.dll" />
</Component>
</Directory>
<Directory Id="dir086D21BE309BE4C7081FC60E3524890F" Name="ja">
<Component Id="cmp867E4E51FE7BC09AAD5D59FD76716FBC">
@ -1927,6 +1984,18 @@
<Component Id="cmp5492F78ACB1A4391BBED371FDFC06B9E">
<File Id="fil54F7909E28E54B0687222DFD1D95009D" KeyPath="yes" Source="$(var.ProductSourcePath)\ja\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmpD9719E20C4874BAD842F3816F549464F">
<File Id="fil5E930553E72B44559E7A73858D6659F5" KeyPath="yes" Source="$(var.ProductSourcePath)\ja\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmpD5674A28AC02465C932121AAA94E4573">
<File Id="fil550FBF5CE7F94F6A95D62E027783DDF4" KeyPath="yes" Source="$(var.ProductSourcePath)\ja\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmp363DB33596C54D3F9AC51EAAB74F82BD">
<File Id="filF4D48377595541F0AC09BFB3BBA044FD" KeyPath="yes" Source="$(var.ProductSourcePath)\ja\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmp22B7BB20E71C464F918C075357161387">
<File Id="filFBBFDE6541E2498383953B35BDCFFA22" KeyPath="yes" Source="$(var.ProductSourcePath)\ja\System.ServiceModel.Http.resources.dll" />
</Component>
</Directory>
<Directory Id="dir43D6CAD5F3ED1060009918D06D84FB18" Name="ko">
<Component Id="cmpAA026CCA623F0E8FB5BAE9F201C5B89D">
@ -1992,6 +2061,18 @@
<Component Id="cmp3B07F4E4B6034F3284288C18F4638CA7">
<File Id="filA52AFEA335CA41D98DB28358CE344EB5" KeyPath="yes" Source="$(var.ProductSourcePath)\ko\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmp26BC394045B3475E9FA34928095DCF27">
<File Id="filCDFD076C27AC45C59771BB708C1D41CC" KeyPath="yes" Source="$(var.ProductSourcePath)\ko\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmp02AF8C29E7044443B708F8BB10DB14CA">
<File Id="fil524D48769BBC42508CC32DE463174CC2" KeyPath="yes" Source="$(var.ProductSourcePath)\ko\System.ServiceModel.Http.resources.dll" />
</Component>
<Component Id="cmp64B6BA07683447DD857B362FF5CA4A4B">
<File Id="fil5B243941B9254B82ACD6FE4FB34F9CEA" KeyPath="yes" Source="$(var.ProductSourcePath)\ko\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmp14E5486D769943608631AC1895D38B86">
<File Id="fil519CA3F08B2C43B788969B02015EF930" KeyPath="yes" Source="$(var.ProductSourcePath)\ko\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
</Directory>
<Directory Id="dirE8201C74A7184D11233BAD63C6DB37BD" Name="pl">
<Component Id="cmpA656A18FE14D3C8EB02C31AE474054E3">
@ -2057,6 +2138,18 @@
<Component Id="cmpA8A66545C44F428BB552B55EEE353BB0">
<File Id="filC0107BEFC31E4F9AB5037537B82D92EF" KeyPath="yes" Source="$(var.ProductSourcePath)\pl\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmpF5DDBF2BFE484850A10B42EF2C57F8D4">
<File Id="fil16C63CC1D0B44957B261C1B7548F7450" KeyPath="yes" Source="$(var.ProductSourcePath)\pl\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmp6970A10D5E0147A8A852165897F8A4FB">
<File Id="fil00778C6E011F432192B50840EB7ECC23" KeyPath="yes" Source="$(var.ProductSourcePath)\pl\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmpC919056A856E4ED695CEB5274643B8BE">
<File Id="fil48A88B6C26204BCEB2C665709C351DB2" KeyPath="yes" Source="$(var.ProductSourcePath)\pl\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmp7F9B3F797818414A88CF4DBFF63565E6">
<File Id="fil61AC0BF51DB248B983A09C8865670735" KeyPath="yes" Source="$(var.ProductSourcePath)\pl\System.ServiceModel.Http.resources.dll" />
</Component>
</Directory>
<Directory Id="dir47ED939BFA870848E0764E862CD6B4D7" Name="pt-BR">
<Component Id="cmp3D20E940BDBF41630242C63011A80CE5">
@ -2122,6 +2215,18 @@
<Component Id="cmp0C4751F9D5C14419A45F234152D21DA9">
<File Id="filF6E3EF23DEEF4D3BB3CA9C9D084FB607" KeyPath="yes" Source="$(var.ProductSourcePath)\pt-BR\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmp194BFDE642044D01B4E755B1C5DFE4A9">
<File Id="fil88C90BF7120B4CF4B13A36AA7EDA13B2" KeyPath="yes" Source="$(var.ProductSourcePath)\pt-BR\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmp5CE6662CA0314ADB86B541038717845F">
<File Id="fil894B92AFD88740AC93EC67E15A154E3F" KeyPath="yes" Source="$(var.ProductSourcePath)\pt-BR\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmpA29C95D4A13B4CCAB97EA86D486B3D4A">
<File Id="fil0C74E1CF00C84446BFDE31D608CCE16A" KeyPath="yes" Source="$(var.ProductSourcePath)\pt-BR\System.ServiceModel.Http.resources.dll" />
</Component>
<Component Id="cmp7A992551B3F74BCD98172E54F99A2AB5">
<File Id="filFF8C34BCB6BC4AEBBE5EA79944F368C3" KeyPath="yes" Source="$(var.ProductSourcePath)\pt-BR\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
</Directory>
<Directory Id="dir37B8DFAE26D5F8E9948851F7D19F9E20" Name="ru">
<Component Id="cmpFDCD51BD80926ABECCE27D0D66A47C8F">
@ -2187,6 +2292,18 @@
<Component Id="cmp6ADB50DF9F2D4BCA9E682AA6D1C7C03B">
<File Id="fil7FECA5AED84D4C84968358F2C065BBEC" KeyPath="yes" Source="$(var.ProductSourcePath)\ru\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmp10B2A231CBDF4C46AC53DE98BCCB99DB">
<File Id="fil48580D0966BD4717AF426C136A696774" KeyPath="yes" Source="$(var.ProductSourcePath)\ru\System.ServiceModel.Http.resources.dll" />
</Component>
<Component Id="cmpB04568E927AB4248A9FEDD27A7E5C490">
<File Id="fil169714D900674F2D9FC085CFDD547874" KeyPath="yes" Source="$(var.ProductSourcePath)\ru\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmp8447EF148C5A4DCB918374A144CD3A42">
<File Id="fil630BA7EB867747278B9283D810BB32EC" KeyPath="yes" Source="$(var.ProductSourcePath)\ru\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmp3B5D1A5FB915468A8EAE239918547978">
<File Id="fil3A8230A1779F494DB4CC649E1CD728A9" KeyPath="yes" Source="$(var.ProductSourcePath)\ru\System.ServiceModel.Primitives.resources.dll" />
</Component>
</Directory>
<Directory Id="dirA7E9CC01273A7FED89FC8D3A368E00CC" Name="tr">
<Component Id="cmp286FCD0B19BF06446A7274672A2491CA">
@ -2252,6 +2369,18 @@
<Component Id="cmp9FCFAEB797D9475C873E21B4B5A89E28">
<File Id="filC4BDA69F669843EAAD7B6D8714CB1420" KeyPath="yes" Source="$(var.ProductSourcePath)\tr\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmp6674BCE3EA2E4FB996857B88108FFB61">
<File Id="fil647C06F9F89F4117BE322338FA90F2DA" KeyPath="yes" Source="$(var.ProductSourcePath)\tr\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmp3BF5C766C55841198F3135A9B0B71CB7">
<File Id="fil3CAAC0264EDB4F52A8914F845FCF7AA6" KeyPath="yes" Source="$(var.ProductSourcePath)\tr\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmp3406FC1D3A274A30AC5A78F1DB735AFA">
<File Id="filFD91F9E635544445AD8F588B4846492D" KeyPath="yes" Source="$(var.ProductSourcePath)\tr\System.ServiceModel.Http.resources.dll" />
</Component>
<Component Id="cmpA6765FE229404EA38F82F6178413AD13">
<File Id="filDF8AD4CB1229409483080C41DF4D2DF1" KeyPath="yes" Source="$(var.ProductSourcePath)\tr\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
</Directory>
<Directory Id="dir47E993970F74AA9F393D23500827D12C" Name="zh-Hans">
<Component Id="cmp34C4A21743AC68583599BF2B139F39F2">
@ -2317,6 +2446,18 @@
<Component Id="cmpF24D3B9F29F84B4D9C47577B7926FC2E">
<File Id="fil0AF0C0F933404EABBC94B10ED8740042" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hans\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmpFF622CEAC8494128B11BC5DAA0F9C5F8">
<File Id="fil0FE0B30BFDDB48D78BFF2A5D7DCD9B93" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hans\System.ServiceModel.Http.resources.dll" />
</Component>
<Component Id="cmp88F942F4F42B466C848CCC2A88BFEBE4">
<File Id="filDE20C49FCE124F91888F8A429651EE48" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hans\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmpA0C76B4D8E9E4A13AAE911DB30522081">
<File Id="fil4CE8FE7EA2584BBB958EB584B6BE10E7" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hans\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmpB11B9EEEA6A4473F8DC5F53A66E922B6">
<File Id="fil0B6FD396E5DD4FD281B499D0992CCE53" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hans\System.ServiceModel.NetTcp.resources.dll" />
</Component>
</Directory>
<Directory Id="dirB1FFB91EED6FD71EA866548CEA3A5298" Name="zh-Hant">
<Component Id="cmpBC28FE8B65954B00AECA9C534639596D">
@ -2382,6 +2523,18 @@
<Component Id="cmpD55F08F6CF51498E9E8551067BA57040">
<File Id="fil46C47F01171F45A898A7AD6A14ACE432" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hant\System.Web.Services.Description.resources.dll" />
</Component>
<Component Id="cmpD30A4712CBDF404D9FC66CFAA3643F6F">
<File Id="filFCE9BA9E37C64935B7896DA770858A38" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hant\System.ServiceModel.NetTcp.resources.dll" />
</Component>
<Component Id="cmp157531E67B594489A253FF99ED53CBAE">
<File Id="fil05BED2F4E9DE46A99837A3CAF45310F2" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hant\System.ServiceModel.NetFramingBase.resources.dll" />
</Component>
<Component Id="cmp2EE6EDE36A5B45BA9D9151D559E51417">
<File Id="fil84798B6D6AC44036B50355FA2A4301A8" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hant\System.ServiceModel.Primitives.resources.dll" />
</Component>
<Component Id="cmp02177BA669A54EEA844AB31897C33911">
<File Id="fil1AA49074F07D4CE2A4E2B5693FB672DA" KeyPath="yes" Source="$(var.ProductSourcePath)\zh-Hant\System.ServiceModel.Http.resources.dll" />
</Component>
</Directory>
<Directory Name="Schemas" Id="dir1DB5B24CC3494785974A51F28F128069">
<Directory Name="PSMaml" Id="dirAC38B2C7629B42DC836E01F976A10EC9">
@ -2778,8 +2931,11 @@
<Component Id="cmp96588875574749E295496861FFC1DB58">
<File Id="filF931B05A25224A188D08E09A9FDC3A58" KeyPath="yes" Source="$(var.ProductSourcePath)\PenImc_cor3.dll" />
</Component>
<Component Id="cmp528DD2F1E4FC4188849B6E2E762EF4C1">
<File Id="fil4E280BC73867468BB0848868AF0C53E9" KeyPath="yes" Source="$(var.ProductSourcePath)\mscordaccore_$(var.FileArchitecture)_$(var.FileArchitecture)_7.0.122.56804.dll" />
<Component Id="cmp514F32E52D3F48708CABAF1FA7159454">
<File Id="fil020DBAB24CEA42F89AFC325D971617C6" KeyPath="yes" Source="$(var.ProductSourcePath)\System.ServiceModel.NetFramingBase.dll" />
</Component>
<Component Id="cmp39CB80852A264F6EBFC6D02C3834B012">
<File Id="filC7FF0E1D65DE4376AA87897DC4365FBF" KeyPath="yes" Source="$(var.ProductSourcePath)\mscordaccore_$(var.FileArchitecture)_$(var.FileArchitecture)_8.0.23.11008.dll" />
</Component>
</DirectoryRef>
</Fragment>
@ -2857,7 +3013,6 @@
<ComponentRef Id="cmp16E86C327EA784631EE474C8518A5FA5" />
<ComponentRef Id="cmp4CB166B799668590C946561BBF2EFDE1" />
<ComponentRef Id="cmpC3FFE4945C208FFF74B59235DE2524CF" />
<ComponentRef Id="cmp15AFF93E2D617D9DE5CDC199C300E4DD" />
<ComponentRef Id="cmpB3D5B3B0C9FE6C6A76115D09B1099682" />
<ComponentRef Id="cmp9568B438265B4B9537FB278425E51F9D" />
<ComponentRef Id="cmp96F5D79C2A39A3FCE2832C9F0DA1FFB9" />
@ -3669,7 +3824,60 @@
<ComponentRef Id="cmpB57C7D1B8B4D41229C7AEA53A2E1FC7C" />
<ComponentRef Id="cmpD1CDA13235324E4EA90A9CFB3EABB34C" />
<ComponentRef Id="cmp96588875574749E295496861FFC1DB58" />
<ComponentRef Id="cmp528DD2F1E4FC4188849B6E2E762EF4C1" />
<ComponentRef Id="cmpF5DDBF2BFE484850A10B42EF2C57F8D4" />
<ComponentRef Id="cmpB2CF2044807642BE99F60F6A73861322" />
<ComponentRef Id="cmp10B2A231CBDF4C46AC53DE98BCCB99DB" />
<ComponentRef Id="cmp194BFDE642044D01B4E755B1C5DFE4A9" />
<ComponentRef Id="cmp26BC394045B3475E9FA34928095DCF27" />
<ComponentRef Id="cmp6674BCE3EA2E4FB996857B88108FFB61" />
<ComponentRef Id="cmpC3F54880CBB64FF180FB951F7B380C5E" />
<ComponentRef Id="cmpFF622CEAC8494128B11BC5DAA0F9C5F8" />
<ComponentRef Id="cmp02AF8C29E7044443B708F8BB10DB14CA" />
<ComponentRef Id="cmp64B6BA07683447DD857B362FF5CA4A4B" />
<ComponentRef Id="cmpD9719E20C4874BAD842F3816F549464F" />
<ComponentRef Id="cmp06573E36E2724AE8BC570ED8E8EA3518" />
<ComponentRef Id="cmpD591955F539048029CD4F537EA96DF0A" />
<ComponentRef Id="cmpFB14FF1397DB48518A3132FA83C8B4F9" />
<ComponentRef Id="cmp14E5486D769943608631AC1895D38B86" />
<ComponentRef Id="cmp514F32E52D3F48708CABAF1FA7159454" />
<ComponentRef Id="cmp88F942F4F42B466C848CCC2A88BFEBE4" />
<ComponentRef Id="cmpD5674A28AC02465C932121AAA94E4573" />
<ComponentRef Id="cmpD30A4712CBDF404D9FC66CFAA3643F6F" />
<ComponentRef Id="cmp4F5357A0A35842AD9D8EFE6EA102D55B" />
<ComponentRef Id="cmpE4A52AE4B2CA401C84940802D2DB2684" />
<ComponentRef Id="cmp32BFC7F61D9F4130AF222B10DC8EEE66" />
<ComponentRef Id="cmp157531E67B594489A253FF99ED53CBAE" />
<ComponentRef Id="cmp363DB33596C54D3F9AC51EAAB74F82BD" />
<ComponentRef Id="cmp7EB53DC3075E42B3AF8E4F15ED18E07B" />
<ComponentRef Id="cmp2EE6EDE36A5B45BA9D9151D559E51417" />
<ComponentRef Id="cmp39CB80852A264F6EBFC6D02C3834B012" />
<ComponentRef Id="cmpB8F155950D0B49AFAF1F9DB13DC7D46A" />
<ComponentRef Id="cmpDF77BEE4A18A427DBEC333AEA0FA3B25" />
<ComponentRef Id="cmp5CE6662CA0314ADB86B541038717845F" />
<ComponentRef Id="cmpA29C95D4A13B4CCAB97EA86D486B3D4A" />
<ComponentRef Id="cmp3BF5C766C55841198F3135A9B0B71CB7" />
<ComponentRef Id="cmp3406FC1D3A274A30AC5A78F1DB735AFA" />
<ComponentRef Id="cmp6970A10D5E0147A8A852165897F8A4FB" />
<ComponentRef Id="cmpA0C76B4D8E9E4A13AAE911DB30522081" />
<ComponentRef Id="cmpC82ADA598A4C4A4D91F9F017FDAA4E4C" />
<ComponentRef Id="cmp7A992551B3F74BCD98172E54F99A2AB5" />
<ComponentRef Id="cmpC919056A856E4ED695CEB5274643B8BE" />
<ComponentRef Id="cmpB04568E927AB4248A9FEDD27A7E5C490" />
<ComponentRef Id="cmp59A584790A4747D9A6B694A828F0F271" />
<ComponentRef Id="cmpC37345F1D2C74563B5C19CC61B5946F9" />
<ComponentRef Id="cmp8447EF148C5A4DCB918374A144CD3A42" />
<ComponentRef Id="cmp3B5D1A5FB915468A8EAE239918547978" />
<ComponentRef Id="cmpDDF430E1B0C0481698106AFB631C5151" />
<ComponentRef Id="cmp7F9B3F797818414A88CF4DBFF63565E6" />
<ComponentRef Id="cmpB11B9EEEA6A4473F8DC5F53A66E922B6" />
<ComponentRef Id="cmpA6765FE229404EA38F82F6178413AD13" />
<ComponentRef Id="cmp7E36202F1EDE4750A0B4A5E80A5CD87B" />
<ComponentRef Id="cmp02177BA669A54EEA844AB31897C33911" />
<ComponentRef Id="cmp3427AEDFF2FC43F690BBB400A41068A6" />
<ComponentRef Id="cmp22B7BB20E71C464F918C075357161387" />
<ComponentRef Id="cmpB374323E62D1426DBEE2699E61585E74" />
<ComponentRef Id="cmpE5FC35D210CB4E76B87F65D179AEB74E" />
<ComponentRef Id="cmp66FEF9DB38B344179CD555D53DA40EDF" />
</ComponentGroup>
</Fragment>
</Wix>

View File

@ -877,8 +877,8 @@ function New-PSOptions {
[ValidateSet('Debug', 'Release', 'CodeCoverage', 'StaticAnalysis', '')]
[string]$Configuration,
[ValidateSet("net7.0")]
[string]$Framework = "net7.0",
[ValidateSet("net8.0")]
[string]$Framework = "net8.0",
# These are duplicated from Start-PSBuild
# We do not use ValidateScript since we want tab completion
@ -3484,7 +3484,7 @@ function Clear-NativeDependencies
$filesToDeleteWinDesktop = @()
$deps = Get-Content "$PublishFolder/pwsh.deps.json" -Raw | ConvertFrom-Json -Depth 20
$targetRuntime = ".NETCoreApp,Version=v7.0/$($script:Options.Runtime)"
$targetRuntime = ".NETCoreApp,Version=v8.0/$($script:Options.Runtime)"
$runtimePackNetCore = $deps.targets.${targetRuntime}.PSObject.Properties.Name -like 'runtimepack.Microsoft.NETCore.App.Runtime*'
$runtimePackWinDesktop = $deps.targets.${targetRuntime}.PSObject.Properties.Name -like 'runtimepack.Microsoft.WindowsDesktop.App.Runtime*'

View File

@ -1,5 +1,5 @@
{
"sdk": {
"version": "7.0.101"
"version": "8.0.100-preview.1.23115.2"
}
}

View File

@ -2,7 +2,7 @@
<configuration>
<packageSources>
<clear />
<add key="dotnet" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v2" />
<add key="dotnet" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v2" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<disabledPackageSources>

View File

@ -7,7 +7,7 @@
<AssemblyName>Microsoft.PowerShell.GraphicalHost</AssemblyName>
<UseWPF>True</UseWPF>
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
<TargetPlatformVersion>7.0</TargetPlatformVersion>
<TargetPlatformVersion>8.0</TargetPlatformVersion>
<RunAnalyzers>false</RunAnalyzers>
</PropertyGroup>

View File

@ -8,7 +8,7 @@
<ItemGroup>
<ProjectReference Include="..\System.Management.Automation\System.Management.Automation.csproj" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="7.0.0" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.0-preview.1.23110.8" />
</ItemGroup>
<PropertyGroup>

View File

@ -47,7 +47,7 @@
<ItemGroup>
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
<PackageReference Include="System.ServiceProcess.ServiceController" Version="7.0.0" />
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0-preview.1.23110.8" />
</ItemGroup>
</Project>

View File

@ -32,9 +32,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0" />
<PackageReference Include="System.Threading.AccessControl" Version="7.0.0" />
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0-2.final" />
<PackageReference Include="System.Threading.AccessControl" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.Drawing.Common" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="NJsonSchema" Version="10.8.0" />
</ItemGroup>

View File

@ -8,7 +8,7 @@
<ItemGroup>
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
<PackageReference Include="System.Diagnostics.EventLog" Version="7.0.0" />
<PackageReference Include="System.Diagnostics.EventLog" Version="8.0.0-preview.1.23110.8" />
</ItemGroup>
</Project>

View File

@ -16,25 +16,21 @@
<ItemGroup>
<!-- This section is to force the version of non-direct dependencies -->
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="7.0.3" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageReference Include="System.Web.Services.Description" Version="4.10.0" />
<!-- the following package(s) are from https://github.com/dotnet/fxdac -->
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
<PackageReference Include="System.IO.Packaging" Version="7.0.0" />
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="7.0.0" />
<PackageReference Include="System.Text.Encodings.Web" Version="7.0.0" />
<PackageReference Include="System.IO.Packaging" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0-preview.1.23110.8" />
<!-- the following package(s) are from https://github.com/dotnet/wcf -->
<PackageReference Include="System.ServiceModel.Duplex" Version="4.10.0" />
<PackageReference Include="System.ServiceModel.Http" Version="4.10.0" />
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.10.0" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.10.0" />
<PackageReference Include="System.ServiceModel.Security" Version="4.10.0" />
<PackageReference Include="System.ServiceModel.Duplex" Version="6.0.0-preview1.23060.3" />
<PackageReference Include="System.ServiceModel.Http" Version="6.0.0-preview1.23060.3" />
<PackageReference Include="System.ServiceModel.NetTcp" Version="6.0.0-preview1.23060.3" />
<PackageReference Include="System.ServiceModel.Primitives" Version="6.0.0-preview1.23060.3" />
<PackageReference Include="System.ServiceModel.Security" Version="6.0.0-preview1.23060.3" />
<PackageReference Include="System.Private.ServiceModel" Version="4.10.0" />
<!-- the source could not be found for the following package(s) -->
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="8.0.0-preview.1.23110.8" />
</ItemGroup>
</Project>

View File

@ -10,7 +10,7 @@
<ProjectReference Include="..\System.Management.Automation\System.Management.Automation.csproj" />
<ProjectReference Include="..\Microsoft.WSMan.Runtime\Microsoft.WSMan.Runtime.csproj" />
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
<PackageReference Include="System.ServiceProcess.ServiceController" Version="7.0.0" />
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0-preview.1.23110.8" />
</ItemGroup>
<PropertyGroup>

View File

@ -5,7 +5,7 @@
<Company>Microsoft Corporation</Company>
<Copyright>(c) Microsoft Corporation.</Copyright>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
</PropertyGroup>

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Generates C# typed bindings for .resx files</Description>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>resgen</AssemblyName>
<OutputType>Exe</OutputType>
<TieredCompilation>true</TieredCompilation>

View File

@ -7,7 +7,7 @@
<PropertyGroup>
<!-- source generator project needs to target 'netstandard2.0' -->
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>10.0</LangVersion>
<LangVersion>11.0</LangVersion>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>

View File

@ -34,16 +34,16 @@
<!-- the Application Insights package -->
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.21.0" />
<!-- the following package(s) are from https://github.com/dotnet/corefx -->
<PackageReference Include="Microsoft.Win32.Registry.AccessControl" Version="7.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0" />
<PackageReference Include="System.DirectoryServices" Version="7.0.0" />
<PackageReference Include="Microsoft.Win32.Registry.AccessControl" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.DirectoryServices" Version="8.0.0-preview.1.23110.8" />
<!--PackageReference Include="System.IO.FileSystem.AccessControl" Version="6.0.0-preview.5.21301.5" /-->
<PackageReference Include="System.Management" Version="7.0.0" />
<PackageReference Include="System.Management" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.Security.AccessControl" Version="6.0.2-mauipre.1.22102.15" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="7.0.0" />
<PackageReference Include="System.Security.Permissions" Version="7.0.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="7.0.0" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.Security.Permissions" Version="8.0.0-preview.1.23110.8" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0-preview.1.23110.8" />
<!-- the following package(s) are from the powershell org -->
<PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" />
<PackageReference Include="Microsoft.PowerShell.Native" Version="7.4.0-preview.2" />

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<Description>Generates CorePsTypeCatalog.cs given powershell.inc</Description>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyName>TypeCatalogGen</AssemblyName>
<OutputType>Exe</OutputType>

View File

@ -12,7 +12,7 @@
<RootNamespace>Microsoft.PowerShell</RootNamespace>
<ApplicationManifest>..\..\assets\pwsh.manifest</ApplicationManifest>
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
<TargetPlatformVersion>7.0</TargetPlatformVersion>
<TargetPlatformVersion>8.0</TargetPlatformVersion>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

View File

@ -6,7 +6,7 @@
<Company>Microsoft Corporation</Company>
<Copyright>(c) Microsoft Corporation.</Copyright>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>11.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

View File

@ -6,8 +6,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.3" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.3" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.5" />
</ItemGroup>
<ItemGroup>

View File

@ -9,7 +9,7 @@
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="MarkdownLog.NS20" Version="0.10.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.3" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
<PackageReference Include="Perfolizer" Version="0.2.1" />
</ItemGroup>
</Project>

View File

@ -167,7 +167,7 @@ Describe "Default enablement of Experimental Features" -Tags CI {
It "On stable builds, Experimental Features are not enabled" -Skip:($isPreview) {
foreach ($expFeature in Get-ExperimentalFeature)
{
# In CI, pwsh that is running tests (with $PSHOME like D:\a\1\s\src\powershell-win-core\bin\release\net7.0\win7-x64\publish)
# In CI, pwsh that is running tests (with $PSHOME like D:\a\1\s\src\powershell-win-core\bin\release\net8.0\win7-x64\publish)
# is launched from another pwsh (with $PSHOME like C:\program files\powershell\7)
# resulting in combined PSModulePath which is used by Get-ExperimentalFeature to enum module-scoped exp.features from both pwsh locations.
# So we need to exclude parent's modules' exp.features from verification using filtering on $PSHOME.
@ -188,7 +188,7 @@ Describe "Default enablement of Experimental Features" -Tags CI {
foreach ($expFeature in Get-ExperimentalFeature)
{
# In CI, pwsh that is running tests (with $PSHOME like D:\a\1\s\src\powershell-win-core\bin\release\net7.0\win7-x64\publish)
# In CI, pwsh that is running tests (with $PSHOME like D:\a\1\s\src\powershell-win-core\bin\release\net8.0\win7-x64\publish)
# is launched from another pwsh (with $PSHOME like C:\program files\powershell\7)
# resulting in combined PSModulePath which is used by Get-ExperimentalFeature to enum module-scoped exp.features from both pwsh locations.
# So we need to exclude parent's modules' exp.features from verification using filtering on $PSHOME.

View File

@ -516,10 +516,10 @@ Billy Bob… Senior DevOps … 13
It "Wrapping long word with escape sequences" {
$expected = @"
`e[32;1mb : `e[0m`e[33mC:\repos\PowerShell\src\powershell-w`e[0m
`e[33min-core\bin\Debug\net7.0\win7-x64\pu`e[0m
`e[33min-core\bin\Debug\net8.0\win7-x64\pu`e[0m
`e[33mblish\pwsh.exe`e[0m
"@
$obj = [pscustomobject] @{ b = "`e[33mC:\repos\PowerShell\src\powershell-win-core\bin\Debug\net7.0\win7-x64\publish\pwsh.exe" }
$obj = [pscustomobject] @{ b = "`e[33mC:\repos\PowerShell\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish\pwsh.exe" }
$obj | Format-List | Out-String -Width 40 | Out-File $outFile
$text = Get-Content $outFile -Raw

View File

@ -36,8 +36,8 @@ param (
[ValidateSet("Debug", "Release")]
[string] $BuildConfiguration = "Debug",
[ValidateSet("net7.0")]
[string] $BuildFramework = "net7.0"
[ValidateSet("net8.0")]
[string] $BuildFramework = "net8.0"
)
$script:ModuleName = 'Microsoft.PowerShell.NamedPipeConnection'

View File

@ -8,9 +8,9 @@
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
<InformationalVersion>1.0.0</InformationalVersion>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<LangVersion>9.0</LangVersion>
<LangVersion>11.0</LangVersion>
</PropertyGroup>
<ItemGroup>

View File

@ -624,7 +624,7 @@ function Invoke-OpenCover
[parameter()]$OutputLog = "$HOME/Documents/OpenCover.xml",
[parameter()]$TestPath = "${script:psRepoPath}/test/powershell",
[parameter()]$OpenCoverPath = "$HOME/OpenCover",
[parameter()]$PowerShellExeDirectory = "${script:psRepoPath}/src/powershell-win-core/bin/CodeCoverage/net7.0/win7-x64/publish",
[parameter()]$PowerShellExeDirectory = "${script:psRepoPath}/src/powershell-win-core/bin/CodeCoverage/net8.0/win7-x64/publish",
[parameter()]$PesterLogElevated = "$HOME/Documents/TestResultsElevated.xml",
[parameter()]$PesterLogUnelevated = "$HOME/Documents/TestResultsUnelevated.xml",
[parameter()]$PesterLogFormat = "NUnitXml",

View File

@ -13,7 +13,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="8.0.0-preview.1.23110.8" />
</ItemGroup>
</Project>

View File

@ -5,6 +5,7 @@ using System;
using System.IO;
using System.IO.Compression;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Filters;
namespace mvc.Controllers
@ -23,7 +24,7 @@ namespace mvc.Controllers
using (var compressedStream = new BrotliStream(responseStream, CompressionLevel.Fastest))
{
httpContext.Response.Headers.Add("Content-Encoding", new[] { "br" });
httpContext.Response.Headers.Append("Content-Encoding", new[] { "br" });
memoryStream.Seek(0, SeekOrigin.Begin);
await memoryStream.CopyToAsync(compressedStream);
}

View File

@ -9,6 +9,7 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.Extensions.Primitives;
using mvc.Models;
@ -28,7 +29,7 @@ namespace mvc.Controllers
}
else
{
Response.Headers.Add("WWW-Authenticate", "Basic realm=\"WebListener\"");
Response.Headers.Append("WWW-Authenticate", "Basic realm=\"WebListener\"");
Response.StatusCode = 401;
return Json("401 Unauthorized");
}
@ -45,7 +46,7 @@ namespace mvc.Controllers
}
else
{
Response.Headers.Add("WWW-Authenticate", "Negotiate");
Response.Headers.Append("WWW-Authenticate", "Negotiate");
Response.StatusCode = 401;
return Json("401 Unauthorized");
}
@ -62,7 +63,7 @@ namespace mvc.Controllers
}
else
{
Response.Headers.Add("WWW-Authenticate", "NTLM");
Response.Headers.Append("WWW-Authenticate", "NTLM");
Response.StatusCode = 401;
return Json("401 Unauthorized");
}

View File

@ -8,6 +8,7 @@ using System.Diagnostics;
using System.Linq;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.Extensions.Primitives;
using mvc.Models;
@ -90,7 +91,7 @@ namespace mvc.Controllers
linkHeader = string.Join(',', linkList);
}
Response.Headers.Add("Link", linkHeader);
Response.Headers.Append("Link", linkHeader);
// Generate /Get/ result and append linknumber, maxlinks, and type
var getController = new GetController();

View File

@ -10,6 +10,7 @@ using System.Net;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.Extensions.Primitives;
using mvc.Models;
@ -38,7 +39,7 @@ namespace mvc.Controllers
{
Response.StatusCode = (int)status;
url = $"{url}?type={type.FirstOrDefault()}";
Response.Headers.Add("Location", url);
Response.Headers.Append("Location", url);
}
else if (typeIsPresent && string.Equals(type.FirstOrDefault(), "relative", StringComparison.InvariantCultureIgnoreCase))
{
@ -48,7 +49,7 @@ namespace mvc.Controllers
else if (destinationIsPresent)
{
Response.StatusCode = 302;
Response.Headers.Add("Location", url);
Response.Headers.Append("Location", url);
}
else
{

View File

@ -5,6 +5,7 @@ using System;
using System.IO;
using System.IO.Compression;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Filters;
namespace mvc.Controllers
@ -23,7 +24,7 @@ namespace mvc.Controllers
using (var compressedStream = new DeflateStream(responseStream, CompressionLevel.Fastest))
{
httpContext.Response.Headers.Add("Content-Encoding", new[] { "deflate" });
httpContext.Response.Headers.Append("Content-Encoding", new[] { "deflate" });
memoryStream.Seek(0, SeekOrigin.Begin);
await memoryStream.CopyToAsync(compressedStream);
}

View File

@ -5,6 +5,7 @@ using System;
using System.IO;
using System.IO.Compression;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Filters;
namespace mvc.Controllers
@ -23,7 +24,7 @@ namespace mvc.Controllers
using (var compressedStream = new GZipStream(responseStream, CompressionLevel.Fastest))
{
httpContext.Response.Headers.Add("Content-Encoding", new[] { "gzip" });
httpContext.Response.Headers.Append("Content-Encoding", new[] { "gzip" });
memoryStream.Seek(0, SeekOrigin.Begin);
await memoryStream.CopyToAsync(compressedStream);
}

View File

@ -7,8 +7,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.1" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="7.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.0-preview.1.23112.2" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0-preview.1.23110.8" />
</ItemGroup>
<ItemGroup>

View File

@ -177,8 +177,8 @@ function Get-CGRegistrations {
$registrationChanged = $false
$dotnetTargetName = 'net7.0'
$dotnetTargetNameWin7 = 'net7.0-windows7.0'
$dotnetTargetName = 'net8.0'
$dotnetTargetNameWin7 = 'net8.0-windows8.0'
$unixProjectName = 'powershell-unix'
$windowsProjectName = 'powershell-win-core'
$actualRuntime = $Runtime
@ -276,7 +276,7 @@ $newRegistrations = $registrations.Keys | Sort-Object | ForEach-Object { $regist
$count = $newRegistrations.Count
$newJson = @{
Registrations = $newRegistrations
Registrations = $newRegistrations
'$schema' = "https://json.schemastore.org/component-detection-manifest.json"
} | ConvertTo-Json -depth 99

View File

@ -16,7 +16,7 @@ $AllDistributions = @()
$AllDistributions += $DebianDistributions
$AllDistributions += $RedhatDistributions
$AllDistributions += 'macOs'
$script:netCoreRuntime = 'net7.0'
$script:netCoreRuntime = 'net8.0'
$script:iconFileName = "Powershell_black_64.png"
$script:iconPath = Join-Path -path $PSScriptRoot -ChildPath "../../assets/$iconFileName" -Resolve
@ -1513,7 +1513,7 @@ function Get-PackageDependencies
)
if($Script:Options.Runtime -like 'fx*') {
$Dependencies += @(
"dotnet-runtime-7.0"
"dotnet-runtime-8.0"
)
}
} elseif ($Distribution -eq 'macOS') {
@ -2377,7 +2377,7 @@ function New-ILNugetPackageFromSource
}
<#
Copy the generated reference assemblies to the 'ref/net7.0' folder properly.
Copy the generated reference assemblies to the 'ref/net8.0' folder properly.
This is a helper function used by 'New-ILNugetPackageSource'.
#>
function CopyReferenceAssemblies
@ -3330,7 +3330,7 @@ function New-MSIPatch
# This example shows how to produce a Debug-x64 installer for development purposes.
cd $RootPathOfPowerShellRepo
Import-Module .\build.psm1; Import-Module .\tools\packaging\packaging.psm1
New-MSIPackage -Verbose -ProductSourcePath '.\src\powershell-win-core\bin\Debug\net7.0\win7-x64\publish' -ProductTargetArchitecture x64 -ProductVersion '1.2.3'
New-MSIPackage -Verbose -ProductSourcePath '.\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish' -ProductTargetArchitecture x64 -ProductVersion '1.2.3'
#>
function New-MSIPackage
{
@ -3721,7 +3721,7 @@ function Start-MsiBuild {
# This example shows how to produce a Debug-x64 installer for development purposes.
cd $RootPathOfPowerShellRepo
Import-Module .\build.psm1; Import-Module .\tools\packaging\packaging.psm1
New-MSIXPackage -Verbose -ProductSourcePath '.\src\powershell-win-core\bin\Debug\net7.0\win7-x64\publish' -ProductTargetArchitecture x64 -ProductVersion '1.2.3'
New-MSIXPackage -Verbose -ProductSourcePath '.\src\powershell-win-core\bin\Debug\net8.0\win7-x64\publish' -ProductTargetArchitecture x64 -ProductVersion '1.2.3'
#>
function New-MSIXPackage
{

View File

@ -166,7 +166,7 @@ open {0}
<files include="**/*" buildAction="None" copyToOutput="true" flatten="false" />
</contentFiles>
<dependencies>
<group targetFramework="net7.0"></group>
<group targetFramework="net8.0"></group>
</dependencies>
</metadata>
</package>

View File

@ -11,6 +11,6 @@
<NuspecProperties>runtime=$(RID);version=$(SemVer);PackageName=$(PackageName)</NuspecProperties>
<NuspecBasePath>$(StagingPath)</NuspecBasePath>
<IsTool>True</IsTool>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
</Project>

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Version>$(RefAsmVersion)</Version>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>$(SnkFile)</AssemblyOriginatorKeyFile>

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Version>$(RefAsmVersion)</Version>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>$(SnkFile)</AssemblyOriginatorKeyFile>

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Version>$(RefAsmVersion)</Version>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>$(SnkFile)</AssemblyOriginatorKeyFile>

View File

@ -108,7 +108,7 @@ jobs:
$localLocation = "$(Pipeline.Workspace)/releasePipeline/finalResults"
$xmlElement = @"
<add key=`"local`" value=`"$localLocation`" />
<add key="dotnet" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/7.0.100-preview.1.22101.1-shipping/nuget/v2" />
<add key="dotnet" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v2" />
</packageSources>
"@