You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
6.7 KiB

4 months ago
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Contributing </title>
  8. <meta name="viewport" content="width=device-width">
  9. <meta name="title" content="Contributing ">
  10. <meta name="generator" content="docfx 2.59.4.0">
  11. <link rel="shortcut icon" href="../favicon.ico">
  12. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  13. <link rel="stylesheet" href="../styles/docfx.css">
  14. <link rel="stylesheet" href="../styles/main.css">
  15. <link rel="stylesheet" href="../styles/fix.css">
  16. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  17. <meta property="docfx:navrel" content="../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../">
  20. <meta property="docfx:newtab" content="true">
  21. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../index.html">
  34. <img id="logo" class="svg" src="../logo.svg" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="articles.contributing">
  73. <h1 id="contributing">Contributing</h1>
  74. <h2 id="prerequisites">Prerequisites</h2>
  75. <ul>
  76. <li>Microsoft Visual Studio 2019 or later (2017 may work, no guarantees)</li>
  77. <li>Tools for C/C++ (MSVC) v141</li>
  78. <li>.NET 4.6.1 SDK and .NET 4.7.2 SDK</li>
  79. <li>Beat Saber (if developing for .NET 4.5+)</li>
  80. <li>Muse Dash (if developing for .NET 3.5)</li>
  81. </ul>
  82. <h2 id="building">Building</h2>
  83. <ol>
  84. <li>Clone with <code>git clone https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded.git --recursive</code></li>
  85. <li><p>Create a file, <code>bsinstalldir.txt</code> in the solution root. Do NOT create this in Visual Studio; VS adds a BOM at the begginning of the file that the tools used cannot read.
  86. It should contain the path to your Beat Saber installation, using forward slashes with a trailing slash. e.g.</p>
  87. <pre><code>C:/Program Files (x86)/Steam/steamapps/common/Beat Saber/
  88. </code></pre><p>If you intend to be doing .NET 3.5 centric development, you must put your Muse Dash installation folder in a file named <code>mdinstalldir.txt</code> that is otherwise identical to
  89. <code>bsinstalldir.txt</code>.</p>
  90. </li>
  91. <li><p>Open <code>BSIPA.sln</code> in Visual Studio.</p>
  92. </li>
  93. <li>Choose the configuration that you intend to target during development.</li>
  94. <li><p>Rebuild all.</p>
  95. <p>When you make a change somewhere in BSIPA itself, right click on <code>BSIPA-Meta</code> and click <code>Build</code> or <code>Rebuild</code>. This sets up the output in <code>path/to/solution/BSIPA-Meta/bin/&lt;Configuration&gt;</code> to be what
  96. should be copied to the game directory.</p>
  97. <p>When making a change to Mod List, you only need to build Mod List itself. Install by copying everything in <code>path/to/solution/BSIPA-ModList/bin/&lt;Configuration&gt;</code> to your game
  98. directory.</p>
  99. </li>
  100. </ol>
  101. <p>When building a Debug build, all referenced assemblies from Beat Saber will be copied from the install directory provided in <code>bsinstalldir.txt</code> into <code>Refs/</code>. Any new references
  102. should reference the copy in there. When building for Release, it just uses the files already in <code>Refs/</code>.</p>
  103. </article>
  104. </div>
  105. <div class="hidden-sm col-md-2" role="complementary">
  106. <div class="sideaffix">
  107. <div class="contribution">
  108. <ul class="nav">
  109. <li>
  110. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/a81bad951faa2996c93ab866290a8f11e87270ce/docs/articles/contributing.md/#L1" class="contribution-link">Improve this Doc</a>
  111. </li>
  112. </ul>
  113. </div>
  114. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  115. <h5>In This Article</h5>
  116. <div></div>
  117. </nav>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <footer>
  123. <div class="grad-bottom"></div>
  124. <div class="footer">
  125. <div class="container">
  126. <span class="pull-right">
  127. <a href="#top">Back to top</a>
  128. </span>
  129. <span>Generated by <strong>DocFX</strong></span>
  130. </div>
  131. </div>
  132. </footer>
  133. </div>
  134. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  135. <script type="text/javascript" src="../styles/docfx.js"></script>
  136. <script type="text/javascript" src="../styles/main.js"></script>
  137. </body>
  138. </html>