0

我已经下载了 DotNetNuke (v.9.0) 的完整源代码版本。

当我尝试使用 Visual Studio (2015) 通过加载提供的项目(DotNetNuke.Website.csproj网站文件夹中)在我的本地计算机上构建 DNN 网站时,我收到以下错误:

Error CS2001 Source file 'C:\...\Website\Install\Install.aspx.cs' could not be found.
Error CS2001 Source file 'C:\...\Website\Install\UpgradeWizard.aspx.cs' could not be found.

到目前为止,我发现的唯一解决方案是将所有网站文件夹作为网站加载到新解决方案中。然而,我宁愿拥有一个合适的 Web 项目。

有什么想法吗?提前谢谢了。

4

1 回答 1

0

在花了一些时间寻找解决方案后,我找到了一个:

  1. 在 Visual Studio 中打开提供的 Web 项目DotNetNuke.Website.csproj(我使用的是 2015)
  2. 右键单击项目并选择“卸载”
  3. 现在再次右键单击卸载的项目,然后单击“编辑”。这将打开一个xml文件
  4. 搜索“Install.aspx”和“UpgradeWizard.aspx”并删除这些文件的引用

    <Compile Include="Install\Install.aspx.cs">
    <DependentUpon>install.aspx</DependentUpon>
    </Compile>
    <Compile Include="Install\Install.aspx.designer.cs">
    <DependentUpon>install.aspx</DependentUpon>
    </Compile>
    <Compile Include="Install\UpgradeWizard.aspx.cs">
    <DependentUpon>UpgradeWizard.aspx</DependentUpon>
    </Compile>
    <Compile Include="Install\UpgradeWizard.aspx.designer.cs">
    <DependentUpon>UpgradeWizard.aspx</DependentUpon>
    </Compile>
    
  5. 另外,搜索<Install>true</Install>并将其设置为false

  6. 右键单击项目并将其加载到解决方案中。

现在 DNN 网站应该可以正常运行了。

我希望这可以帮助别人。

于 2017-02-16T15:40:51.953 回答