corefx源未按预期重建

时间:2018-10-15 05:50:08

标签: .net-core coreclr

我正在尝试构建一个与定制的corefx链接的dotnet核心应用程序。我计划对System.Collections进行一些更改,但是现在我只是想让系统正常运行。看来我对源文件的编辑没有像我期望的那样被合并到最终软件包中。另外,即使我没有从存储库中显式提取(即git pull),corefx版本号也在改变。

我正在按照以下步骤操作(在corefx dogfooding docs中进行了概述):

Sub Allocate_Rooms()
'Allocating a Resource (Room) to a Task based on the location of the 
facility, room capacity and availability
Dim T As Task
Dim R As Resource

For Each T In ActiveProject.Tasks
i = 0

If Left(T.Name, 1) <> "M" Then 'Checks to see if the task is a valid Module session
    GoTo SkipT
End If

For Each R In ActiveProject.Resources
    If Left(R.Name, 2) <> "R-" Then 'Skips resources that are not rooms
        GoTo SkipR
    End If

    If T.Text5 = R.Text3 Then 'The Resource (Room) is in the same facility as the sesssion that is being held
        If T.Text1 <= R.Text1 Then 'Check the number of users is less than or equal to the Room Capacity
            'If ??????
                'Something in here to check the availability of the Resource (Room).  This would be based on the set calendar
                'of the Resource and also would check if the room has been allocated to another Task in the Project

                T.ResourceNames = R.Name 'Assign the resource to the task

            Goto SkipT
             'End if
        End If
    End If

SkipR:
Next R 'next Resource
SkipT:

Next T 'Next Task

End Sub
  • 在我的Test.csproj中添加包参考
<packageSources>
  <clear />
  <add key="local coreclr" value="c:\<path>\corefx\bin\packages\Release" />
</packageSources>

两件事没有按预期进行:

  1. 我修改了Dictionary.cs以在默认构造函数中引发异常,但在实例化Dictionary时未在我的简单测试程序中引发该异常
  2. 在corefx \ bin \ packages \ Release下,软件包版本已增加到Microsoft.Private.CoreFx.NETCoreApp.4.6.0-preview1- 27014 -1.nupkg,而昨天是< strong> 27013

似乎构建系统正在下载最新版本,而无视我的源代码。

0 个答案:

没有答案