DNN (DotNetNuke) 网站项目抛出错误 "Install.aspx could not be found"

DNN (DotNetNuke) Website project throws error "Install.aspx could not be found"

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

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

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 项目。

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

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

  1. 在Visual Studio中打开提供的Web项目DotNetNuke.Website.csproj(我使用的是2015)
  2. 右击项目然后select"Unload"
  3. 现在再次右键单击卸载的项目并单击 "Edit"。这将打开一个 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 网站应该 运行 没有问题。

我希望这对某人有所帮助。